diff --git a/apps/client/src/widgets/ribbon/NoteInfoTab.tsx b/apps/client/src/widgets/ribbon/NoteInfoTab.tsx index f2add08a4..2e670d51d 100644 --- a/apps/client/src/widgets/ribbon/NoteInfoTab.tsx +++ b/apps/client/src/widgets/ribbon/NoteInfoTab.tsx @@ -40,7 +40,7 @@ export default function NoteInfoTab({ note }: TabContext) { {t("note_info_widget.note_id")}: - {note.noteId} + {note.noteId} {t("note_info_widget.created")}: {formatDateTime(metadata?.dateCreated)} {t("note_info_widget.modified")}: @@ -64,11 +64,11 @@ export default function NoteInfoTab({ note }: TabContext) { text={t("note_info_widget.calculate")} onClick={() => { setIsLoading(true); - setTimeout(async () => { + setTimeout(async () => { await Promise.allSettled([ server.get(`stats/note-size/${note.noteId}`).then(setNoteSizeResponse), server.get(`stats/subtree-size/${note.noteId}`).then(setSubtreeSizeResponse) - ]); + ]); setIsLoading(false); }, 0); }} @@ -87,7 +87,7 @@ export default function NoteInfoTab({ note }: TabContext) { - )} + )} ) -} \ No newline at end of file +}