fix: remove linkageRule for custom request in create form (#5179)

This commit is contained in:
Katherine 2024-09-03 17:43:00 +08:00 committed by GitHub
parent 654fa40ab3
commit cfa1680390
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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