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
web: fix toolbar crash Signed-off-by: 01zulfi <[email protected]>
01zulfi19b1e74d06f3
diff --git a/apps/web/src/dialogs/settings/components/customize-toolbar.tsx b/apps/web/src/dialogs/settings/components/customize-toolbar.tsxindex 50b95face..a30e7f61d 100644--- a/apps/web/src/dialogs/settings/components/customize-toolbar.tsx+++ b/apps/web/src/dialogs/settings/components/customize-toolbar.tsx@@ -680,7 +680,8 @@ type ResolvedGroup = {};function getGroup(items: TreeNode[], groupId: string): ResolvedGroup | null {const index = items.findIndex((item) => item.id === groupId);- const group = items[index];+ const group = items.at(index);+ if (!group) return null;if (!isGroup(group) && !isSubgroup(group)) return null;const nextGroupIndex = items.findIndex(