mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix: error when licensing was not checked (#47201)
This commit is contained in:
parent
7555ff2087
commit
07aa1349d8
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user