fix: custom request action should support linkage rule setting (#4410)

This commit is contained in:
Katherine 2024-05-20 15:01:10 +08:00 committed by GitHub
parent 570a265e57
commit a5ede09a2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1263,7 +1263,7 @@ export const SchemaSettingsLinkageRules = function LinkageRules(props) {
const localVariables = useLocalVariables();
const record = useRecord();
const { type: formBlockType } = useFormBlockType();
const type = props?.type || ['Action', 'Action.Link'].includes(fieldSchema['x-component']) ? 'button' : 'field';
const type = props?.type || fieldSchema?.['x-action'] ? 'button' : 'field';
const gridSchema = findGridSchema(fieldSchema) || fieldSchema;
const schema = useMemo<ISchema>(
() => ({