mirror of
https://github.com/zadam/trilium.git
synced 2026-01-06 22:54:23 +01:00
fix(edited_notes): no message if there are no edited notes on a day
This commit is contained in:
parent
f3b274650e
commit
851169e061
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user