mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 22:49:26 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
085889d97c
@ -179,7 +179,7 @@ export const setDefaultValue = async (field: any, variables: any) => {
|
||||
field.setInitialValue(defaultValue);
|
||||
} else {
|
||||
field.loading = true;
|
||||
const value = await variables.parseVariable(defaultValue);
|
||||
const { value } = await variables.parseVariable(defaultValue);
|
||||
const transformedValue = transformValue(value, field.componentProps);
|
||||
field.setValue(transformedValue);
|
||||
field.setInitialValue(transformedValue);
|
||||
|
Loading…
x
Reference in New Issue
Block a user