0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-27 21:39:16 -05:00

fix(console): focus on org socpes tab on app scopes modal reopened (#5839)

This commit is contained in:
Xiao Yijun 2024-05-10 10:08:56 +08:00 committed by GitHub
parent ff65cfb75b
commit 50f336c7d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,7 +34,7 @@ function ApplicationScopesAssignmentModal({ isOpen, onClose, applicationId, scop
clearSelectedData();
setActiveTab(
scopeLevel === ScopeLevel.Organization
? ApplicationUserConsentScopeType.OrganizationResourceScopes
? ApplicationUserConsentScopeType.OrganizationScopes
: ApplicationUserConsentScopeType.UserScopes
);
}, [clearSelectedData, onClose, scopeLevel, setActiveTab]);