fix(edited_notes): no message if there are no edited notes on a day

This commit is contained in:
Elian Doran 2025-12-17 22:39:24 +02:00
parent f3b274650e
commit 851169e061
No known key found for this signature in database

View File

@ -328,20 +328,19 @@ function EditedNotes() {
function EditedNotesContent({ note }: { note: FNote }) { function EditedNotesContent({ note }: { note: FNote }) {
const editedNotes = useEditedNotes(note); const editedNotes = useEditedNotes(note);
return ( return (editedNotes !== undefined &&
<> (editedNotes.length > 0 ? editedNotes?.map(editedNote => (
{editedNotes?.map(editedNote => ( <SimpleBadge
<SimpleBadge key={editedNote.noteId}
key={editedNote.noteId} title={(
title={( <NoteLink
<NoteLink notePath={editedNote.noteId}
notePath={editedNote.noteId} showNoteIcon
showNoteIcon />
/> )}
)} />
/> )) : (
))} <div className="no-edited-notes-found">{t("edited_notes.no_edited_notes_found")}</div>
</> )));
);
} }
//#endregion //#endregion