Skip to content

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

fix: color count not updating

thecodrrf9ced79ed913
diff --git a/apps/web/src/stores/editor-store.js b/apps/web/src/stores/editor-store.js
index 355c60a60..3c4c9053d 100644
--- a/apps/web/src/stores/editor-store.js
+++ b/apps/web/src/stores/editor-store.js
@@ -115,7 +115,7 @@ function editorStore(set, get) {
func(note).then(id => {
if (tags.length > 0) updateContext("tags", tags);
- if (oldSession.colors.length > 0) {
+ if (oldSession.colors.length > 0 || colors.length > 0) {
updateContext("colors", colors);
appStore.getState().refreshColors();
}