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: crash when item is undefined
thecodrr92eda1b851b1
diff --git a/apps/web/src/components/list-container/index.js b/apps/web/src/components/list-container/index.jsindex 068c6a1da..c3656ac2e 100644--- a/apps/web/src/components/list-container/index.js+++ b/apps/web/src/components/list-container/index.js@@ -58,6 +58,7 @@ function ListContainer(props) {switch (index) {default:const item = props.items[index];+ if (!item) return "";return item.id || item.title;}}}@@ -66,6 +67,7 @@ function ListContainer(props) {estimatedItemSize={profile.estimatedItemHeight}itemSize={(index) => {const item = props.items[index];+ if (!item) return 0;if (item.type === "header") {if (!item.title) return 0;return 29;@@ -77,6 +79,7 @@ function ListContainer(props) {>{({ index, style }) => {const item = props.items[index];+ if (!item) return null;return (<div key={item.id || item.title} style={style}>{item.type === "header" ? (