From a57db4b590183bc44224bb78c4fe385deecda90e Mon Sep 17 00:00:00 2001 From: thecodrr Date: Sun, 19 Apr 2020 14:16:58 +0500 Subject: [PATCH] fix: resolve all warnings --- apps/web/src/stores/editor-store.js | 2 ++ apps/web/src/views/Notes.js | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/src/stores/editor-store.js b/apps/web/src/stores/editor-store.js index ec18b8a78..c52341940 100644 --- a/apps/web/src/stores/editor-store.js +++ b/apps/web/src/stores/editor-store.js @@ -76,6 +76,7 @@ class EditorStore extends BaseStore { saveSession = (oldSession) => { this.set((state) => (state.session.isSaving = true)); this._saveFn()(this.get().session).then(async (id) => { + /* eslint-disable */ storeSync: if (oldSession) { if (oldSession.tags.length !== this.get().session.tags.length) tagStore.refresh(); @@ -90,6 +91,7 @@ class EditorStore extends BaseStore { else if (type === "color") await db.notes.note(id).color(value); else if (type === "tag") await db.notes.note(id).tag(value); } + /* eslint-enable */ if (!this.get().session.id) { noteStore.setSelectedNote(id); diff --git a/apps/web/src/views/Notes.js b/apps/web/src/views/Notes.js index 7614280a7..043ed6a3d 100644 --- a/apps/web/src/views/Notes.js +++ b/apps/web/src/views/Notes.js @@ -3,7 +3,6 @@ import Note from "../components/note"; import ListContainer from "../components/list-container"; import { useStore } from "../stores/editor-store"; import { useStore as useNotesStore } from "../stores/note-store"; -import { DEFAULT_CONTEXT } from "../common"; function Notes(props) { const newSession = useStore((store) => store.newSession);