diff --git a/src/components/admin/ToolsEditor.tsx b/src/components/admin/ToolsEditor.tsx index 2201a13..d73b7aa 100644 --- a/src/components/admin/ToolsEditor.tsx +++ b/src/components/admin/ToolsEditor.tsx @@ -132,7 +132,7 @@ export function ToolsEditor({ tools, onSave, isEditable, isSaving = false }: Too setSelectedTools((prev) => { if (prev.includes(tool)) { // Removing a tool - also remove tools that depend on it - const newTools = prev.filter((t) => t !== tool) + let newTools = prev.filter((t) => t !== tool) // If removing gitea, also remove gitea-drone if (tool === 'gitea') { newTools = newTools.filter((t) => t !== 'gitea-drone') diff --git a/src/components/admin/create-order-dialog.tsx b/src/components/admin/create-order-dialog.tsx index 8d62de8..f6b0612 100644 --- a/src/components/admin/create-order-dialog.tsx +++ b/src/components/admin/create-order-dialog.tsx @@ -242,7 +242,7 @@ export function CreateOrderDialog({ setSelectedTools((prev) => { if (prev.includes(tool)) { // Removing a tool - also remove tools that depend on it - const newTools = prev.filter((t) => t !== tool) + let newTools = prev.filter((t) => t !== tool) // If removing gitea, also remove gitea-drone if (tool === 'gitea') { newTools = newTools.filter((t) => t !== 'gitea-drone')