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: pin/unpin causing a crash
thecodrr4760b706b16c
diff --git a/apps/web/src/views/Home.js b/apps/web/src/views/Home.jsindex dc93b09a7..76dbdb19a 100644--- a/apps/web/src/views/Home.js+++ b/apps/web/src/views/Home.js@@ -9,8 +9,9 @@ import NotesPlaceholder from "../components/placeholders/notesplacholder";function Home() {useEffect(() => store.refresh(), []);- const notes = useStore(store => store.notes);- const newSession = useEditorStore(store => store.newSession);+ const notes = useStore((store) => store.notes);+ const newSession = useEditorStore((store) => store.newSession);+ console.log(notes);return (<ListContaineritems={notes.items}@@ -26,11 +27,12 @@ function Home() {width: "100%",flex: "1 1 auto",height: "auto",- overflowX: "hidden"+ overflowX: "hidden",}}groupCounts={notes.groupCounts}- group={groupIndex =>- notes.groups[groupIndex].title === "Pinned" ? (+ group={(groupIndex) => {+ if (!notes.groups[groupIndex]) return;+ return notes.groups[groupIndex].title === "Pinned" ? (<Box px={2} bg="background" py={1} />) : (<Box mx={2} bg="background" py={0}>@@ -38,8 +40,8 @@ function Home() {{notes.groups[groupIndex].title}</Text></Box>- )- }+ );+ }}item={(index, groupIndex) =>notes.groupCounts[groupIndex] && (<Note index={index} pinnable={true} item={notes.items[index]} />diff --git a/apps/web/yarn.lock b/apps/web/yarn.lockindex 97ced67a2..9ce497921 100644--- a/apps/web/yarn.lock+++ b/apps/web/yarn.lock@@ -7253,7 +7253,7 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:"notes-core@git+ssh://[email protected]:streetwriters/notesnook-core.git":version "1.3.0"- resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#f19e76f63dfdf2b9b9914d19ebf139a93dba63c1"+ resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#ed5ead55bed5ff5ec976ed46dc517854b407aff7"dependencies:fast-sort "^2.0.1"fuzzysearch "^1.0.3"