diff --git a/src/public/app/services/ws.js b/src/public/app/services/ws.js index 021ea0ca5..4f8e47b96 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 78347bcd5..08dc943b0 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 a7b149183..6763f8048 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;