Skip to content

Commit

Permalink
FOLIO-3627 correctly handle optional x-okapi-token header
Browse files Browse the repository at this point in the history
  • Loading branch information
zburke committed Oct 20, 2023
1 parent 1083694 commit 95304da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
}
});

Expand Down

0 comments on commit 95304da

Please sign in to comment.