diff --git a/browser/main/NoteList/index.js b/browser/main/NoteList/index.js index ff003479..8c3e8790 100644 --- a/browser/main/NoteList/index.js +++ b/browser/main/NoteList/index.js @@ -780,6 +780,8 @@ class NoteList extends React.Component { } }) + const viewType = this.getViewType() + const noteList = notes .map(note => { if (note == null) { @@ -807,7 +809,7 @@ class NoteList extends React.Component { pathname={location.pathname} folderName={this.getNoteFolder(note).name} storageName={this.getNoteStorage(note).name} - viewType={this.getViewType()} + viewType={viewType} /> ) } @@ -823,7 +825,7 @@ class NoteList extends React.Component { pathname={location.pathname} folderName={this.getNoteFolder(note).name} storageName={this.getNoteStorage(note).name} - viewType={this.getViewType()} + viewType={viewType} /> ) })