diff --git a/components/status/StatusActions.vue b/components/status/StatusActions.vue index 760dec2d..1a8ac3dd 100644 --- a/components/status/StatusActions.vue +++ b/components/status/StatusActions.vue @@ -7,7 +7,7 @@ const props = defineProps<{ command?: boolean }>() -const focusEditor = inject<() => void>('focus-editor') +const focusEditor = inject('focus-editor', noop) const { details, command } = $(props) @@ -23,7 +23,7 @@ const reply = () => { if (!checkLogin()) return if (details) { - focusEditor?.() + focusEditor() } else { const { key, draft } = getReplyDraft(status)