Skip to content

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

fix note coloring bug

ammarahm-ed0bb6597950ca
diff --git a/apps/mobile/src/components/ActionSheetComponent/ActionSheetColorsSection.js b/apps/mobile/src/components/ActionSheetComponent/ActionSheetColorsSection.js
index b7806d570..9f823cadb 100644
--- a/apps/mobile/src/components/ActionSheetComponent/ActionSheetColorsSection.js
+++ b/apps/mobile/src/components/ActionSheetComponent/ActionSheetColorsSection.js
@@ -20,12 +20,13 @@ export const ActionSheetColorsSection = ({item, close}) => {
let width = dimensions.width > 600 ? 600 : 500;
const changeColor = async (color) => {
+ console.log(note);
if (note.color === color.name) {
await db.notes.note(note.id).uncolor();
} else {
await db.notes.note(note.id).color(color.name);
}
- let _note = db.notes.note(note.id);
+ let _note = db.notes.note(note.id).data;
setNote({..._note});
setColorNotes();
Navigation.setRoutesToUpdate([