chore: optimize error message (#2985)

This commit is contained in:
被雨水过滤的空气-Rain 2023-11-07 21:21:49 +08:00 committed by GitHub
parent adfb9a72ca
commit 3802ca38f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ||