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 color.title is undefined
thecodrr9b2a9e758b33
diff --git a/apps/web/src/components/navigation-menu/index.js b/apps/web/src/components/navigation-menu/index.jsindex 6d8b86458..daa727274 100644--- a/apps/web/src/components/navigation-menu/index.js+++ b/apps/web/src/components/navigation-menu/index.js@@ -134,18 +134,21 @@ function NavigationMenu(props) {}}/>))}- {colors.map((color) => (- <NavigationItem- key={color.title}- title={toTitleCase(color.title)}- icon={Icon.Circle}- selected={location === `/colors/${color.id}`}- color={COLORS[color.title]}- onClick={() => {- navigate(`/colors/${color.id}`);- }}- />- ))}+ {colors.map(+ (color) =>+ !!color.title && (+ <NavigationItem+ key={color.title}+ title={toTitleCase(color.title)}+ icon={Icon.Circle}+ selected={location === `/colors/${color.id}`}+ color={COLORS[color.title]}+ onClick={() => {+ navigate(`/colors/${color.id}`);+ }}+ />+ )+ )}<FlexflexDirection="column"sx={{ borderTop: "1px solid", borderTopColor: "border" }}