A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: adding new note error with color
ammarahm-eda9ad579fc42a
diff --git a/apps/mobile/src/components/SimpleList/NoteItemWrapper.js b/apps/mobile/src/components/SimpleList/NoteItemWrapper.jsindex 699bf08c3..0cafc7817 100644--- a/apps/mobile/src/components/SimpleList/NoteItemWrapper.js+++ b/apps/mobile/src/components/SimpleList/NoteItemWrapper.js@@ -27,13 +27,11 @@ export const NoteItemWrapper = ({item, index, isTrash = false}) => {}, [item]);const onNoteChange = (data) => {-- if (!data || data.id !== note.id || data.closed) {+ if (!data || data.id !== item.id || data.closed) {return;}- let newNote = db.notes.note(data.id).data;- console.log('updating note',newNote.notebooks)- setNote(newNote);+ let _note = db.notes.note(item.id).data;+ setNote(_note);};useEffect(() => {@@ -41,7 +39,7 @@ export const NoteItemWrapper = ({item, index, isTrash = false}) => {return () => {eUnSubscribeEvent(eOnNoteEdited, onNoteChange);};- }, []);+ }, [note]);const style = useMemo(() => {return {width: selectionMode ? '90%' : '100%', marginHorizontal: 0};