Skip to content

Build your personal knowledge base with Trilium Notes

close note type dropdown after click

zadamf5216e47994d
diff --git a/src/public/app/services/ws.js b/src/public/app/services/ws.js
index 021ea0ca5c..4f8e47b96c 100644
--- a/src/public/app/services/ws.js
+++ b/src/public/app/services/ws.js
@@ -7,7 +7,6 @@ import Attribute from "../entities/attribute.js";
import options from "./options.js";
import treeCache from "./tree_cache.js";
import noteAttributeCache from "./note_attribute_cache.js";
-import tree from "./tree.js";
const $outstandingSyncsCount = $("#outstanding-syncs-count");
diff --git a/src/public/app/widgets/note_type.js b/src/public/app/widgets/note_type.js
index 78347bcd5c..08dc943b05 100644
--- a/src/public/app/widgets/note_type.js
+++ b/src/public/app/widgets/note_type.js
@@ -64,6 +64,8 @@ export default class NoteTypeWidget extends TabAwareWidget {
const noteType = NOTE_TYPES.find(nt => nt.type === type);
this.save(noteType.type, noteType.mime);
+
+ this.$widget.find('.dropdown-toggle').dropdown('toggle');
});
if (this.note.type === noteType.type) {
diff --git a/src/services/note_cache/note_cache_service.js b/src/services/note_cache/note_cache_service.js
index a7b1491834..6763f80480 100644
--- a/src/services/note_cache/note_cache_service.js
+++ b/src/services/note_cache/note_cache_service.js
@@ -237,8 +237,6 @@ async function findSimilarNotes(noteId) {
maxDate: dateUtils.utcDateStr(new Date(dateCreatedTs + 1800)),
};
- console.log("ORIG:", origNote.flatText);
-
for (const note of Object.values(noteCache.notes)) {
if (note.noteId === origNote.noteId) {
continue;