### What problem does this PR solve? add support for ollama Issue link:#221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@@ -46,8 +46,10 @@ const ApiKeyModal = ({
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
form.setFieldValue('api_key', initialValue);
|
||||
}, [initialValue, form]);
|
||||
if (visible) {
|
||||
form.setFieldValue('api_key', initialValue);
|
||||
}
|
||||
}, [initialValue, form, visible]);
|
||||
|
||||
return (
|
||||
<Modal
|
||||
|
||||
Reference in New Issue
Block a user