Skip to content

Commit

Permalink
fix: remove filter from relationship list
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Feb 28, 2025
1 parent 72e0105 commit a9b3e8a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/pages/tenant/gdap-management/onboarding/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,9 @@ const Page = () => {
data: {
TenantFilter: "",
Endpoint: "tenantRelationships/delegatedAdminRelationships",
$filter:
"(status eq 'active' or status eq 'approvalPending') and not startsWith(displayName,'MLT_')",
},
queryKey: "GDAPRelationshipOnboarding",
});

const onboardingList = ApiGetCallWithPagination({
url: "/api/ListTenantOnboarding",
queryKey: "ListTenantOnboarding",
Expand Down Expand Up @@ -108,7 +105,11 @@ const Page = () => {
(relationship) => relationship?.id === queryId
);

if (relationship) {
if (
relationship &&
(relationship?.status === "active" || relationship?.status === "approvalPending") &&
!relationship?.customer?.displayName.startsWith("MLT_")
) {
formValue = {
label:
(relationship?.customer?.displayName ?? "Pending Invite") +
Expand Down

0 comments on commit a9b3e8a

Please sign in to comment.