Fix let/const for newTools - let where reassigned, const where mutated
Build and Push Docker Image / lint-and-typecheck (push) Successful in 1m26s Details
Build and Push Docker Image / build (push) Successful in 4m3s Details

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Matt 2026-01-17 12:45:54 +01:00
parent d0a5a4ab02
commit b870c58695
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ export function ToolsEditor({ tools, onSave, isEditable, isSaving = false }: Too
setSelectedTools((prev) => { setSelectedTools((prev) => {
if (prev.includes(tool)) { if (prev.includes(tool)) {
// Removing a tool - also remove tools that depend on it // 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 removing gitea, also remove gitea-drone
if (tool === 'gitea') { if (tool === 'gitea') {
newTools = newTools.filter((t) => t !== 'gitea-drone') newTools = newTools.filter((t) => t !== 'gitea-drone')

View File

@ -242,7 +242,7 @@ export function CreateOrderDialog({
setSelectedTools((prev) => { setSelectedTools((prev) => {
if (prev.includes(tool)) { if (prev.includes(tool)) {
// Removing a tool - also remove tools that depend on it // 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 removing gitea, also remove gitea-drone
if (tool === 'gitea') { if (tool === 'gitea') {
newTools = newTools.filter((t) => t !== 'gitea-drone') newTools = newTools.filter((t) => t !== 'gitea-drone')