From 851169e061d55853a75d8aa9f47a2b6f04993b00 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 17 Dec 2025 22:39:24 +0200 Subject: [PATCH] fix(edited_notes): no message if there are no edited notes on a day --- .../client/src/widgets/layout/InlineTitle.tsx | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/apps/client/src/widgets/layout/InlineTitle.tsx b/apps/client/src/widgets/layout/InlineTitle.tsx index 6dec10c10..bb043cca2 100644 --- a/apps/client/src/widgets/layout/InlineTitle.tsx +++ b/apps/client/src/widgets/layout/InlineTitle.tsx @@ -328,20 +328,19 @@ function EditedNotes() { function EditedNotesContent({ note }: { note: FNote }) { const editedNotes = useEditedNotes(note); - return ( - <> - {editedNotes?.map(editedNote => ( - - )} - /> - ))} - - ); + return (editedNotes !== undefined && + (editedNotes.length > 0 ? editedNotes?.map(editedNote => ( + + )} + /> + )) : ( +
{t("edited_notes.no_edited_notes_found")}
+ ))); } //#endregion