Skip to content

Commit

Permalink
Merge pull request #4357 from SujanSanjula96/fix-api-resource-ui
Browse files Browse the repository at this point in the history
Fix API authorization issue
  • Loading branch information
SujanSanjula96 authored Oct 26, 2023
2 parents 1a157c3 + 8998fa5 commit 9ded199
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/happy-carpets-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/console": patch
---

Fix API Authorization issue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const useScopesOfAPIResources = <Data = AuthorizedPermissionListItemInterface[],
url: `${ store.getState().config.endpoints.apiResources }/${ apiResourceId }/scopes`
};

const { data, error, isValidating, mutate } = useRequest<Data, Error>(requestConfig);
const { data, error, isValidating, mutate } = useRequest<Data, Error>(apiResourceId ? requestConfig: null);

return {
data,
Expand Down

0 comments on commit 9ded199

Please sign in to comment.