All: Fixes #1251: Handle Show Uncompleted Tasks option when selecting a tag

pull/1257/head
Laurent Cozic 2019-02-24 10:38:06 +00:00
parent 7d6b7e588c
commit b40ccc7a15
2 changed files with 3 additions and 3 deletions

View File

@ -794,7 +794,7 @@ class NoteTextComponent extends React.Component {
});
if (Setting.value('env') === 'dev') {
this.webviewRef_.current.wrappedInstance.openDevTools();
// this.webviewRef_.current.wrappedInstance.openDevTools();
}
}

View File

@ -30,9 +30,9 @@ class Tag extends BaseItem {
let noteIds = await this.noteIds(tagId);
if (!noteIds.length) return [];
return Note.search(Object.assign({}, options, {
return Note.previews(null, Object.assign({}, options, {
conditions: ['id IN ("' + noteIds.join('","') + '")'],
}))
}));
}
// Untag all the notes and delete tag