zahmis 4 lat temu
rodzic
commit
ee5c7b2c57

+ 0 - 10
packages/app/src/components/Admin/SlackIntegration/ManageCommandsProcessWithoutProxy.jsx

@@ -49,16 +49,6 @@ const getUpdatedPermissionSettings = (prevState, commandName, value) => {
   return newState;
   return newState;
 };
 };
 
 
-// A utility function that returns the permission type from the permission value
-const getPermissionTypeFromValue = (value) => {
-  if (Array.isArray(value)) {
-    return PermissionTypes.ALLOW_SPECIFIED;
-  }
-  if (typeof value === 'boolean') {
-    return value ? PermissionTypes.ALLOW_ALL : PermissionTypes.DENY_ALL;
-  }
-  logger.error('The value type must be boolean or string[]');
-};
 
 
 // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
 // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
 const ManageCommandsProcessWithoutProxy = ({ apiv3Put, commandPermission }) => {
 const ManageCommandsProcessWithoutProxy = ({ apiv3Put, commandPermission }) => {