fix(web): remove duplicate loadAllEquipmentCards call in startOps
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 <noreply@anthropic.com>
This commit is contained in:
parent
08add0d087
commit
0e8d194a70
|
|
@ -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" })
|
||||
|
|
|
|||
Loading…
Reference in New Issue