Skip to content

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

fix: refresh colors on trash restore

thecodrrba04c346fc27
diff --git a/apps/web/src/stores/trash-store.js b/apps/web/src/stores/trash-store.js
index a640aae3e..f266dca17 100644
--- a/apps/web/src/stores/trash-store.js
+++ b/apps/web/src/stores/trash-store.js
@@ -1,6 +1,7 @@
import { db } from "../common/index";
import createStore from "../common/store";
import BaseStore from "./index";
+import { store as appStore } from "./app-store";
class TrashStore extends BaseStore {
trash = [];
@@ -21,6 +22,7 @@ class TrashStore extends BaseStore {
restore = (id, index) => {
return db.trash.restore(id).then(() => {
this.set((state) => state.trash.splice(index, 1));
+ appStore.refreshColors();
});
};
diff --git a/apps/web/yarn.lock b/apps/web/yarn.lock
index 9153a5d9c..dec2abac1 100644
--- a/apps/web/yarn.lock
+++ b/apps/web/yarn.lock
@@ -8954,7 +8954,7 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:
"notes-core@git+ssh://[email protected]:streetwriters/notesnook-core.git":
version "2.3.5"
- resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#6a6fff1455647bcf14ea7641beab95fc6a906c82"
+ resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#8235c1fec8632a35965116fb9bd01a5a3f33fe8b"
dependencies:
fast-sort "^2.0.1"
fuzzysearch "^1.0.3"