mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 08:18:10 -05:00
fix: error when licensing was not checked (#47201)
This commit is contained in:
@@ -77,7 +77,7 @@ const ServiceAccountPageUnconnected = ({
|
||||
const serviceAccountId = parseInt(match.params.id, 10);
|
||||
loadServiceAccount(serviceAccountId);
|
||||
loadServiceAccountTokens(serviceAccountId);
|
||||
if (contextSrv.accessControlEnabled()) {
|
||||
if (contextSrv.licensedAccessControlEnabled()) {
|
||||
fetchACOptions();
|
||||
}
|
||||
}, [match, loadServiceAccount, loadServiceAccountTokens, fetchACOptions]);
|
||||
|
||||
@@ -67,7 +67,7 @@ const ServiceAccountsListPage = ({
|
||||
|
||||
useEffect(() => {
|
||||
fetchServiceAccounts();
|
||||
if (contextSrv.accessControlEnabled()) {
|
||||
if (contextSrv.licensedAccessControlEnabled()) {
|
||||
fetchACOptions();
|
||||
}
|
||||
}, [fetchServiceAccounts, fetchACOptions]);
|
||||
|
||||
Reference in New Issue
Block a user