Skip to content

Commit 8cd545b

Browse files
committed
2 parents 13b30d3 + 772b9bf commit 8cd545b

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/2_sonar.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ jobs:
8787
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
8888
SONAR_HOST_URL: ${{ env.SONARQUBE_HOST }}
8989

90-
- name: SonarQube Quality Gate check
91-
uses: sonarsource/sonarqube-quality-gate-action@v1.2.0
92-
# Force to fail step after specific time.
93-
timeout-minutes: 5
94-
env:
95-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
96-
SONAR_HOST_URL: ${{ env.SONARQUBE_HOST }}
90+
# - name: SonarQube Quality Gate check
91+
# uses: sonarsource/sonarqube-quality-gate-action@v1.2.0
92+
# # Force to fail step after specific time.
93+
# timeout-minutes: 5
94+
# env:
95+
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
96+
# SONAR_HOST_URL: ${{ env.SONARQUBE_HOST }}

src/components/core/org-switcher/org-switcher.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export const OrgSwitcher = () => {
4444

4545
const userOrganizations = useMemo(() => {
4646
if (!data?.memberships?.length) return enabledOrganizations;
47-
const membershipOrgIds = data.memberships.map((m) => m.organizationId);
48-
return enabledOrganizations.filter((org) => membershipOrgIds.includes(org.itemId));
47+
const membershipOrgIds = new Set(data.memberships.map((m) => m.organizationId));
48+
return enabledOrganizations.filter((org) => membershipOrgIds.has(org.itemId));
4949
}, [data, enabledOrganizations]);
5050

5151
const selectedOrg = currentOrgId

0 commit comments

Comments
 (0)