Skip to content

Commit

Permalink
add loading check
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Apr 23, 2024
1 parent afca48e commit e647816
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/graph/adGroups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,13 @@ export function ADGroups({
>
Azure Active Directory groups (type 3 characters to search)
</Typography>
{adGroups?.length > 0 && unknownADGroups?.length > 0 && (
<UnknownADGroupsAlert
unknownADGroups={unknownADGroups}
></UnknownADGroupsAlert>
)}
{!state.isLoading &&
adGroups?.length > 0 &&
unknownADGroups?.length > 0 && (
<UnknownADGroupsAlert
unknownADGroups={unknownADGroups}
></UnknownADGroupsAlert>
)}
</>
);
}
Expand Down

0 comments on commit e647816

Please sign in to comment.