From 5c1fccfb35348f8c7d81b811d1ead6c9c7ec2c30 Mon Sep 17 00:00:00 2001 From: woogi Date: Wed, 5 Aug 2026 16:07:34 -0500 Subject: [PATCH] Guard syncPipelineOptions when hybrid radio is removed. --- frontend/index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index f77b52d..b98ee25 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -353,8 +353,10 @@ function escAttr(s){ return esc(s).replace(/"/g,'"'); } function syncPipelineOptions(){ const agent=(document.querySelector('input[name="pipeline_mode"]:checked')||{}).value==='agent'; const local=document.querySelector('input[name="compute"][value="local"]'); - local.disabled=agent; - if(agent&&local.checked) document.querySelector('input[name="compute"][value="openrouter"]').checked=true; + if(local){ + local.disabled=agent; + if(agent&&local.checked) document.querySelector('input[name="compute"][value="openrouter"]').checked=true; + } } document.querySelectorAll('input[name="pipeline_mode"]').forEach(el=>el.addEventListener('change',syncPipelineOptions)); syncPipelineOptions();