From 4eb60271898d6a915f9e9d13eb50e31a2b81a8a6 Mon Sep 17 00:00:00 2001 From: chenos Date: Sun, 22 Oct 2023 11:44:06 +0800 Subject: [PATCH] fix(plugin-multi-app-share-collection): type error --- .../src/client/MultiAppShareCollectionProvider.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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};