Skip to content

Commit

Permalink
Merge pull request #40959 from nkdengineer/fix/40679
Browse files Browse the repository at this point in the history
fix: Unapproved workspace appears in workspace switcher
  • Loading branch information
danieldoglas authored Apr 25, 2024
2 parents c611709 + 2460345 commit a795127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/WorkspaceSwitcherPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function WorkspaceSwitcherPage() {
}

return Object.values(policies)
.filter((policy) => PolicyUtils.shouldShowPolicy(policy, !!isOffline))
.filter((policy) => PolicyUtils.shouldShowPolicy(policy, !!isOffline) && !policy?.isJoinRequestPending)
.map((policy) => ({
text: policy?.name ?? '',
policyID: policy?.id ?? '',
Expand Down

0 comments on commit a795127

Please sign in to comment.