diff --git a/packages/frontend/src/scripts/use-note-capture.ts b/packages/frontend/src/scripts/use-note-capture.ts index 50fbffb35..2e402a188 100644 --- a/packages/frontend/src/scripts/use-note-capture.ts +++ b/packages/frontend/src/scripts/use-note-capture.ts @@ -77,7 +77,7 @@ export function useNoteCapture(props: { case 'updated': { note.value.history = [ - ...note.value.history, + ...(note.value.history || []), { createdAt: note.value.updatedAt, cw: note.value.cw,