fix note card display (#2989)

This commit is contained in:
brendanlaschke
2023-12-14 16:01:45 +01:00
committed by GitHub
parent 45deb468cc
commit 7f3d5e0e82

View File

@ -84,7 +84,7 @@ export const NoteCard = ({
const theme = useTheme();
const openActivityRightDrawer = useOpenActivityRightDrawer();
const noteBody = JSON.parse(note.body ?? '[]');
const noteBody = note.body ? JSON.parse(note.body) : [];
const body = noteBody.length
? noteBody