fix: deduplicate models before submitting
This commit is contained in:
@@ -77,7 +77,8 @@ const ProviderForm: React.FC<ProviderFormProps> = forwardRef((props, ref) => {
|
|||||||
config: {
|
config: {
|
||||||
type: values.config.type,
|
type: values.config.type,
|
||||||
...yaml2Json(advanceRef.current?.getYamlValue() || '')
|
...yaml2Json(advanceRef.current?.getYamlValue() || '')
|
||||||
}
|
},
|
||||||
|
models: _.uniqBy(values.models, 'name')
|
||||||
};
|
};
|
||||||
onFinish(data);
|
onFinish(data);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user