Skip to content

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

web: disabled toolbar items are not removed from the toolbar (#1357)

Muhammad Ali68c79bcdd597
diff --git a/apps/web/src/components/dialogs/toolbar-config-dialog.tsx b/apps/web/src/components/dialogs/toolbar-config-dialog.tsx
index 7d14ac7c8..16202a62d 100644
--- a/apps/web/src/components/dialogs/toolbar-config-dialog.tsx
+++ b/apps/web/src/components/dialogs/toolbar-config-dialog.tsx
@@ -97,7 +97,7 @@ export default function ToolbarConfigDialog(props: ToolbarConfigDialogProps) {
positiveButton={{
text: "Save",
onClick: async () => {
- const tools = unflatten(items.slice(0, items.length - 1));
+ const tools = unflatten(items).slice(0, -1);
await db.settings?.setToolbarConfig("desktop", {
preset: currentPreset.id,