mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-03 12:41:45 +02:00
fix: resolve all warnings
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user