Skip to content

Commit

Permalink
Merge pull request #7473 from JayaShakthi97/fix-22354-2
Browse files Browse the repository at this point in the history
[bug-fix] Fix applications listing issue in application role creation flow
  • Loading branch information
JayaShakthi97 authored Jan 31, 2025
2 parents 4b9f8d3 + 2c880fb commit 7a62555
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-seahorses-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.roles.v2": patch
---

Fix applications listing issue in application role creation flow
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export const RoleBasics: FunctionComponent<RoleBasicProps> = (props: RoleBasicPr
const {
data: applicationList,
isLoading: isApplicationListFetchRequestLoading,
isValidating: isApplicationListFetchRequestValidating,
error: applicationListFetchRequestError,
mutate: mutateApplicationListFetchRequest
} = useApplicationList("clientId,associatedRoles.allowedAudience,advancedConfigurations", null, null,
Expand Down Expand Up @@ -187,7 +188,7 @@ export const RoleBasics: FunctionComponent<RoleBasicProps> = (props: RoleBasicPr
noApplicationsAvailable.current = (options.length === 0);

setApplicationListOptions(options);
}, [ isApplicationListFetchRequestLoading ]);
}, [ isApplicationListFetchRequestValidating ]);

useEffect(() => {
if (isFormError || isDisplayNoAppScopeApplicatioError) {
Expand Down

0 comments on commit 7a62555

Please sign in to comment.