mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:47:10 +00:00
chore: optimize error message (#2985)
This commit is contained in:
parent
adfb9a72ca
commit
3802ca38f8
@ -16,6 +16,8 @@ import { transformVariableValue } from '../../../../variables/utils/transformVar
|
||||
import { isSubMode } from '../../association-field/util';
|
||||
import { isFromDatabase, useSpecialCase } from './useSpecialCase';
|
||||
|
||||
const formilyVariable = ['record'];
|
||||
|
||||
/**
|
||||
* 用于解析并设置 FormItem 的默认值
|
||||
*/
|
||||
@ -47,6 +49,7 @@ const useParseDefaultValue = () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (
|
||||
(isVariable(fieldSchema.default) && formilyVariable.includes(getVariableName(fieldSchema.default))) ||
|
||||
fieldSchema.default == null ||
|
||||
isInSetDefaultValueDialog ||
|
||||
isInFormDataTemplate ||
|
||||
|
Loading…
Reference in New Issue
Block a user