From 0e8d194a7007b43eb0000f0f04d59f49ecf42234 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 26 Mar 2026 09:23:09 +0800 Subject: [PATCH] fix(web): remove duplicate loadAllEquipmentCards call in startOps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit startOps() was calling loadAllEquipmentCards() redundantly — the units-loaded event listener already calls it after loadUnits() completes. This caused two parallel requests to /api/unit/:id/detail for every unit on page load. Co-Authored-By: Claude Sonnet 4.6 --- web/js/ops.js | 1 - 1 file changed, 1 deletion(-) diff --git a/web/js/ops.js b/web/js/ops.js index 2456a02..d49172c 100644 --- a/web/js/ops.js +++ b/web/js/ops.js @@ -192,7 +192,6 @@ function renderOpsEquipments(equipments) { export function startOps() { renderOpsUnits(); - loadAllEquipmentCards(); dom.batchStartAutoBtn?.addEventListener("click", () => { apiFetch("/api/control/unit/batch-start-auto", { method: "POST" })