Guard syncPipelineOptions when hybrid radio is removed.
Docker Release / build-and-push (push) Successful in 55s
Docker Release / release (push) Skipped

This commit is contained in:
2026-08-05 16:07:34 -05:00
parent 32544bc2af
commit 5c1fccfb35
+2
View File
@@ -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"]');
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();