mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 01:15:58 +00:00
fix: remove linkageRule for custom request in create form (#5179)
This commit is contained in:
parent
654fa40ab3
commit
cfa1680390
@ -17,6 +17,7 @@ import {
|
||||
useCollection,
|
||||
useSchemaToolbar,
|
||||
RefreshDataBlockRequest,
|
||||
useCollectionRecord,
|
||||
} from '@nocobase/client';
|
||||
import { CustomRequestACL, CustomRequestSettingsItem } from './components/CustomRequestActionDesigner';
|
||||
import { useFieldSchema } from '@formily/react';
|
||||
@ -45,6 +46,10 @@ export const customizeCustomRequestActionSettings = new SchemaSettings({
|
||||
collectionName: name,
|
||||
};
|
||||
},
|
||||
useVisible() {
|
||||
const record = useCollectionRecord();
|
||||
return !record?.isNew;
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'secondConFirm',
|
||||
|
Loading…
Reference in New Issue
Block a user