1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Fixed display of todos

This commit is contained in:
Laurent Cozic
2017-07-24 21:14:25 +01:00
parent 3e1decdfa6
commit cfa3c6f4bb
2 changed files with 3 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ class ItemListComponent extends Component {
for (let i = 0; i < notes.length; i++) {
const note = notes[i];
if (note.is_todo) {
if (todoFilter == 'recent' && note.updated_time < notRecentTime) continue;
if (todoFilter == 'recent' && note.updated_time < notRecentTime && !!note.todo_completed) continue;
if (todoFilter == 'nonCompleted' && !!note.todo_completed) continue;
}
output.push(note);