Fix: Unable to create dataset (#15472)

### What problem does this PR solve?

Fix: Unable to create dataset

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2026-06-01 15:30:52 +08:00
committed by GitHub
parent 10e8690890
commit 82202fa469

View File

@@ -106,10 +106,10 @@ export function InputForm({ onOk }: IModalProps<any>) {
if (parseType === ParseType.BuiltIn) {
form.setValue('pipeline_id', '');
}
if (tenantInfo?.embd_id) {
form.setValue('embedding_model', tenantInfo?.embd_id);
if (defaultModelDictionary?.embd_id) {
form.setValue('embedding_model', defaultModelDictionary?.embd_id);
}
}, [parseType, form, tenantInfo]);
}, [parseType, form, defaultModelDictionary]);
return (
<Form {...form}>