mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 05:36:05 +00:00
fix: fix custom request linkage rules problem (#4913)
This commit is contained in:
parent
2e356b7e8d
commit
adb72738f9
@ -987,7 +987,9 @@ export const SchemaSettingsLinkageRules = function LinkageRules(props) {
|
||||
const record = useRecord();
|
||||
const { type: formBlockType } = useFormBlockType();
|
||||
const category = props?.category ?? LinkageRuleCategory.default;
|
||||
const elementType = ['Action', 'Action.Link'].includes(fieldSchema['x-component']) ? 'button' : 'field';
|
||||
const elementType =
|
||||
props?.type ||
|
||||
(fieldSchema?.['x-action'] || ['Action', 'Action.Link'].includes(fieldSchema['x-component']) ? 'button' : 'field');
|
||||
|
||||
const gridSchema = findGridSchema(fieldSchema) || fieldSchema;
|
||||
const options = useLinkageCollectionFilterOptions(collectionName);
|
||||
|
Loading…
Reference in New Issue
Block a user