diff --git a/browser/main/NoteList/index.js b/browser/main/NoteList/index.js index 11569a8a..c6618ff8 100644 --- a/browser/main/NoteList/index.js +++ b/browser/main/NoteList/index.js @@ -327,6 +327,7 @@ class NoteList extends React.Component { }) : [] let isActive = location.query.key === note.storage + '-' + note.key + const isDefault = config.listStyle === 'DEFAULT' return (
this.handleNoteClick(e, note.storage + '-' + note.key)} onContextMenu={(e) => this.handleNoteContextMenu(e, note.storage + '-' + note.key)} > - {config.listStyle === 'DEFAULT' && + {isDefault &&
{moment(config.sortBy === 'CREATED_AT' ? note.createdAt : note.updatedAt).fromNow()}
@@ -349,7 +350,7 @@ class NoteList extends React.Component { }
- {config.listStyle === 'DEFAULT' && + {isDefault &&
{tagElements.length > 0 @@ -360,12 +361,14 @@ class NoteList extends React.Component {
} - + {isDefault && + + }
) })