pages
This commit is contained in:
parent
c2469ab000
commit
a31692f8b6
@ -63,6 +63,9 @@ export const NotesView: React.FC<NotesViewProps> = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const formatNoteTitle = (note: Note) => {
|
const formatNoteTitle = (note: Note) => {
|
||||||
|
if (!note.title) {
|
||||||
|
return 'Sans titre';
|
||||||
|
}
|
||||||
if (currentFolder === 'Diary' || currentFolder === 'Health') {
|
if (currentFolder === 'Diary' || currentFolder === 'Health') {
|
||||||
// Try to extract date from title (format: YYYY-MM-DD)
|
// Try to extract date from title (format: YYYY-MM-DD)
|
||||||
const dateMatch = note.title.match(/^(\d{4}-\d{2}-\d{2})/);
|
const dateMatch = note.title.match(/^(\d{4}-\d{2}-\d{2})/);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user