fix: null history

This commit is contained in:
Nya Candy 2024-04-01 21:47:02 +08:00 committed by fly_mc
parent 3e99dab827
commit 2f7d818c54

View file

@ -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,