From b40ccc7a15d4ab4c8b368d10e123929a4da4736e Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 24 Feb 2019 10:38:06 +0000 Subject: [PATCH] All: Fixes #1251: Handle Show Uncompleted Tasks option when selecting a tag --- ElectronClient/app/gui/NoteText.jsx | 2 +- ReactNativeClient/lib/models/Tag.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ElectronClient/app/gui/NoteText.jsx b/ElectronClient/app/gui/NoteText.jsx index c2c21afb8b..f5b96c9176 100644 --- a/ElectronClient/app/gui/NoteText.jsx +++ b/ElectronClient/app/gui/NoteText.jsx @@ -794,7 +794,7 @@ class NoteTextComponent extends React.Component { }); if (Setting.value('env') === 'dev') { - this.webviewRef_.current.wrappedInstance.openDevTools(); + // this.webviewRef_.current.wrappedInstance.openDevTools(); } } diff --git a/ReactNativeClient/lib/models/Tag.js b/ReactNativeClient/lib/models/Tag.js index 07d08e9f88..07fb782ea5 100644 --- a/ReactNativeClient/lib/models/Tag.js +++ b/ReactNativeClient/lib/models/Tag.js @@ -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