Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: resolve all warnings

thecodrra57db4b59018
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);