Skip to content

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

fix note added on color screen not colored

ammarahm-ed11d22c28dfca
diff --git a/apps/mobile/src/screens/editor/Functions.js b/apps/mobile/src/screens/editor/Functions.js
index 54f752211..d798d9bd2 100644
--- a/apps/mobile/src/screens/editor/Functions.js
+++ b/apps/mobile/src/screens/editor/Functions.js
@@ -746,7 +746,8 @@ async function addToCollection(id) {
break;
}
case 'color': {
- await db.notes.note(id).color(editing.actionAfterFirstSave.id);
+ console.log('after save action:', editing.actionAfterFirstSave.name);
+ await db.notes.note(id).color(editing.actionAfterFirstSave.color);
editing.actionAfterFirstSave = {
type: null
};
diff --git a/apps/mobile/src/screens/notes/index.js b/apps/mobile/src/screens/notes/index.js
index 172291e1c..b067e7994 100644
--- a/apps/mobile/src/screens/notes/index.js
+++ b/apps/mobile/src/screens/notes/index.js
@@ -98,10 +98,12 @@ export const Notes = ({ route, navigation }) => {
const setActionAfterFirstSave = () => {
if (params.current?.get === 'monographs') return;
+ console.log(params.current);
editing.actionAfterFirstSave = {
type: params.current?.type,
id: params.current?.id,
- notebook: params.current?.notebookId
+ notebook: params.current?.notebookId,
+ color: params.current.title
};
};