fix(plugin-multi-app-share-collection): type error

This commit is contained in:
chenos 2023-10-22 11:44:06 +08:00
parent dbdbcf8912
commit 4eb6027189

View File

@ -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}</>;