don't display similar notes under search

This commit is contained in:
zadam
2020-12-25 13:06:58 +01:00
parent 75c3bd8ae3
commit 95760f1d28
2 changed files with 5 additions and 3 deletions

View File

@@ -41,7 +41,9 @@ const TPL = `
export default class SimilarNotesWidget extends TabAwareWidget {
isEnabled() {
return super.isEnabled() && !this.note.hasLabel('similarNotesWidgetDisabled');
return super.isEnabled()
&& this.note.type !== 'search'
&& !this.note.hasLabel('similarNotesWidgetDisabled');
}
doRender() {