Skip to content

Commit 47eabba

Browse files
fix(admin-ui): resolve crash in Auth Server Built-In & ACRs due to undefined loading state (#2580) (#2581)
fix(admin-ui): resolve crash in Auth Server Built-In & ACRs due to undefined loading state (#2580) Co-authored-by: Mohammad Abudayyeh <47318409+moabu@users.noreply.github.com>
1 parent 48ec433 commit 47eabba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

admin-ui/plugins/auth-server/components/AuthN/AuthNListPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ function AuthNListPage({ isBuiltIn = false }: AuthNListPageProps): ReactElement
188188
]
189189

190190
const tableData = useMemo(() => {
191-
if (loading || scriptsLoading || acrsLoading) {
191+
if (ldapLoading || scriptsLoading || acrsLoading) {
192192
return []
193193
}
194194
if (isBuiltIn) {
@@ -197,7 +197,7 @@ function AuthNListPage({ isBuiltIn = false }: AuthNListPageProps): ReactElement
197197
return [...list.ldap, ...list.scripts].sort(
198198
(item1, item2) => (item1.level || 0) - (item2.level || 0),
199199
)
200-
}, [loading, scriptsLoading, acrsLoading, isBuiltIn, list.ldap, list.scripts])
200+
}, [ldapLoading, scriptsLoading, acrsLoading, isBuiltIn, list.ldap, list.scripts])
201201

202202
return (
203203
<GluuViewWrapper canShow={canReadAuthN}>
@@ -208,7 +208,7 @@ function AuthNListPage({ isBuiltIn = false }: AuthNListPageProps): ReactElement
208208
}}
209209
columns={columns}
210210
data={tableData}
211-
isLoading={loading || scriptsLoading || acrsLoading}
211+
isLoading={ldapLoading || scriptsLoading || acrsLoading}
212212
title=""
213213
actions={myActions}
214214
options={{

0 commit comments

Comments
 (0)