hoisting bugfixes

This commit is contained in:
zadam
2020-10-19 22:10:25 +02:00
parent 991b335c3e
commit c2b64bad80
3 changed files with 16 additions and 3 deletions

View File

@@ -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) {