Skip to content

Commit

Permalink
fix: custom request action should support linkage rule setting (#4410)
Browse files Browse the repository at this point in the history
  • Loading branch information
katherinehhh committed May 20, 2024
1 parent 570a265 commit a5ede09
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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>(
() => ({
Expand Down

0 comments on commit a5ede09

Please sign in to comment.