fix: civitai picker

This commit is contained in:
bennykok
2024-01-28 22:08:31 +08:00
parent 757c587901
commit d96811a0c3
2 changed files with 4 additions and 2 deletions
@@ -61,7 +61,8 @@ function ModelPickerView({
}: Pick<AutoFormInputComponentProps, "field" | "fieldProps">) {
const customOverride = React.useMemo(() => {
const customOnChange = (value: z.infer<typeof ModelList>) => {
field.onChange(value[0]?.url);
const model = value[0];
field.onChange(model?.url);
};
return {
...field,