fix: resolve all warnings

This commit is contained in:
thecodrr
2020-04-19 14:16:58 +05:00
parent a7b568d108
commit a57db4b590
2 changed files with 2 additions and 1 deletions

View File

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

View File

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