1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-02 23:19:57 +00:00

fix(status): optional boolean props

This commit is contained in:
三咲智子 2022-12-29 21:50:11 +08:00
parent bbc029c52f
commit 6cae9505ae
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E

View file

@ -3,8 +3,8 @@ import type { Status } from 'masto'
const { status, collapsed = false, simplified = false } = defineProps<{ const { status, collapsed = false, simplified = false } = defineProps<{
status: Status status: Status
collapsed: boolean collapsed?: boolean
simplified: boolean simplified?: boolean
}>() }>()
const isSelf = $computed(() => status.inReplyToAccountId === status.account.id) const isSelf = $computed(() => status.inReplyToAccountId === status.account.id)