diff --git a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx index f9e0f476c..ec3417105 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx +++ b/packages/plugins/@nocobase/plugin-multi-app-share-collection/src/client/MultiAppShareCollectionProvider.tsx @@ -26,11 +26,11 @@ const useShareCollectionAction = () => { }; }; -const updateSchema = tableActionColumnSchema.properties.update; -const deleteSchema = tableActionColumnSchema.properties.delete; +const updateSchema = tableActionColumnSchema.properties['update']; +const deleteSchema = tableActionColumnSchema.properties['delete']; -delete tableActionColumnSchema.properties.update; -delete tableActionColumnSchema.properties.delete; +delete tableActionColumnSchema.properties['update']; +delete tableActionColumnSchema.properties['delete']; tableActionColumnSchema.properties['collection'] = { type: 'void', @@ -78,8 +78,8 @@ tableActionColumnSchema.properties['collection'] = { }, }; -tableActionColumnSchema.properties.update = updateSchema; -tableActionColumnSchema.properties.delete = deleteSchema; +tableActionColumnSchema.properties['update'] = updateSchema; +tableActionColumnSchema.properties['delete'] = deleteSchema; export const MultiAppShareCollectionProvider = (props) => { return <>{props.children};