Fix: Sync testEngine with activeTab for Google Vision tests

This commit is contained in:
Patrick Britton 2026-02-16 07:48:36 -06:00
parent d5fc89b97a
commit e931c6cdb3

View file

@ -237,6 +237,11 @@ function ConfigEditor({ moderationType, config, onSaved }: {
}); });
}; };
// Sync testEngine with activeTab when tab changes
useEffect(() => {
setTestEngine(activeTab);
}, [activeTab]);
// OpenRouter model picker // OpenRouter model picker
const [showPicker, setShowPicker] = useState(false); const [showPicker, setShowPicker] = useState(false);
const [models, setModels] = useState<ModelInfo[]>([]); const [models, setModels] = useState<ModelInfo[]>([]);