diff --git a/components/carnet/notes-view.tsx b/components/carnet/notes-view.tsx index c2dd452..5c31e3a 100644 --- a/components/carnet/notes-view.tsx +++ b/components/carnet/notes-view.tsx @@ -63,6 +63,9 @@ export const NotesView: React.FC = ({ }; const formatNoteTitle = (note: Note) => { + if (!note.title) { + return 'Sans titre'; + } if (currentFolder === 'Diary' || currentFolder === 'Health') { // Try to extract date from title (format: YYYY-MM-DD) const dateMatch = note.title.match(/^(\d{4}-\d{2}-\d{2})/);