Skip to content

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

fix: crash when color title is empty

thecodrr2dedc515d553
diff --git a/apps/web/src/components/navigation-menu/index.js b/apps/web/src/components/navigation-menu/index.js
index 1cb45bd0d..4a991c693 100644
--- a/apps/web/src/components/navigation-menu/index.js
+++ b/apps/web/src/components/navigation-menu/index.js
@@ -136,7 +136,7 @@ function NavigationMenu(props) {
))}
{colors.map(
(color) =>
- !!color.title && (
+ color?.title?.length && (
<NavigationItem
key={color.title}
title={toTitleCase(color.title)}