diff --git a/src/components/PermissionsAccordion/components/PermissionsModal/PermissionsModal.js b/src/components/PermissionsAccordion/components/PermissionsModal/PermissionsModal.js index 4cdbcced2..d284a69da 100644 --- a/src/components/PermissionsAccordion/components/PermissionsModal/PermissionsModal.js +++ b/src/components/PermissionsAccordion/components/PermissionsModal/PermissionsModal.js @@ -170,7 +170,7 @@ class PermissionsModal extends React.Component { const permissions = await GET({ headers: { [OKAPI_TENANT_HEADER]: tenantId || okapi.tenant, - [OKAPI_TOKEN_HEADER]: okapi.token, + ...(okapi.token && { [OKAPI_TOKEN_HEADER]: okapi.token }), } });