Skip to content

Commit

Permalink
fix: note note not update
Browse files Browse the repository at this point in the history
  • Loading branch information
betterRunner committed Sep 10, 2021
1 parent ce48b8a commit 3c6a028
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/content-scripts/renderer/popup/note-book/note-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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");
}
Expand Down
2 changes: 1 addition & 1 deletion src/content-scripts/renderer/popup/note-book/note.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
? ""
Expand Down

0 comments on commit 3c6a028

Please sign in to comment.