diff --git a/src/content-scripts/renderer/popup/note-book/note-list.vue b/src/content-scripts/renderer/popup/note-book/note-list.vue index 9f6ceae..59ae91d 100644 --- a/src/content-scripts/renderer/popup/note-book/note-list.vue +++ b/src/content-scripts/renderer/popup/note-book/note-list.vue @@ -38,6 +38,7 @@ import { delItemFromArr, } from "@/utils/storage"; import { StorageKeys } from "@/utils/constant"; +import { filterBySearchText } from "@/utils/search-filter"; import { removeUrlPostfix } from "@/utils/utils"; import Note from "./note.vue"; @@ -146,7 +147,6 @@ export default defineComponent({ // update the tag item tag = storage.tags[m]; if (tag.noteIds.length === 0) { - console.log("delete"); // if the tag `noteIds` is empty, delete the tag also storage.tags = await delItemFromArr(StorageKeys.tags, tag.id, "id"); } diff --git a/src/content-scripts/renderer/popup/note-book/note.vue b/src/content-scripts/renderer/popup/note-book/note.vue index 23971c6..4993567 100644 --- a/src/content-scripts/renderer/popup/note-book/note.vue +++ b/src/content-scripts/renderer/popup/note-book/note.vue @@ -208,7 +208,7 @@ export default { const handleClickOutsideEditor = () => { enableEditor.value = false; // save the note - if (!notSelected) { + if (!notSelected.value) { // quill would turn `ops` from array to indexes object, turn it back to array const content = !editorContent.value ? ""