Fix: Sync testEngine with activeTab for Google Vision tests
This commit is contained in:
parent
d5fc89b97a
commit
e931c6cdb3
|
|
@ -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[]>([]);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue