Skip to content

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

fix: note not getting colored

thecodrr792f2e3949a2
diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.js
index 5e2b94119..898b33de2 100644
--- a/apps/web/src/components/note/index.js
+++ b/apps/web/src/components/note/index.js
@@ -41,6 +41,7 @@ function Note(props) {
body={note.headline}
id={note.id}
index={index}
+ colors={{ shade, primary, text: note.color ? primary : "text" }}
menu={{
items: context?.type === "topic" ? topicNoteMenuItems : menuItems,
extraData: { note, context },
@@ -151,7 +152,7 @@ const menuItems = [
{
key: "colors",
title: () => "Colors",
- component: ({ data }) => <Colors note={data} />,
+ component: ({ data }) => <Colors note={data.note} />,
},
{
key: "addtonotebook",