Skip to content

Commit

Permalink
fix: Unapproved workspace appears in workspace switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Apr 25, 2024
1 parent 9a727de commit 2460345
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 2460345

Please sign in to comment.