Skip to content

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

fix: make immer happy

thecodrrfbd6fb5a116e
diff --git a/apps/web/src/stores/app-store.js b/apps/web/src/stores/app-store.js
index b7e2eec6d..4139a219e 100644
--- a/apps/web/src/stores/app-store.js
+++ b/apps/web/src/stores/app-store.js
@@ -1,4 +1,3 @@
-import { db } from "../common/index";
import createStore from "../common/store";
function appStore(set) {
diff --git a/apps/web/src/stores/notebook-store.js b/apps/web/src/stores/notebook-store.js
index afb60c8e2..cb4fde242 100644
--- a/apps/web/src/stores/notebook-store.js
+++ b/apps/web/src/stores/notebook-store.js
@@ -4,7 +4,9 @@ import createStore from "../common/store";
function notebookStore(set) {
return {
init: function() {
- set(state => (state.notebooks = db.notebooks.all));
+ set(state => {
+ state.notebooks = db.notebooks.all;
+ });
},
notebooks: [],
add: async function(nb) {