mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
hoisting bugfixes
This commit is contained in:
@@ -122,6 +122,11 @@ export default class SimilarNotesWidget extends TabAwareWidget {
|
||||
|
||||
const similarNotes = await server.get('similar-notes/' + this.noteId);
|
||||
|
||||
if (!similarNotes) {
|
||||
this.toggleInt(false);
|
||||
return;
|
||||
}
|
||||
|
||||
this.toggleInt(similarNotes.length > 0);
|
||||
|
||||
if (similarNotes.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user