Skip to content

Commit

Permalink
Merge pull request KelvinTegelaar#3490 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
Update offboarding.js
  • Loading branch information
JohnDuprey authored Jan 27, 2025
2 parents 69e9e75 + da746cd commit 517fc23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/tenant/gdap-management/offboarding.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { CippFormComponent } from "/src/components/CippComponents/CippFormCompon
import vendorTenantList from "/src/data/vendorTenantList";
import { Box, Grid, Stack } from "@mui/system";
import { Alert, Divider, Typography } from "@mui/material";
import { ApiGetCall } from "/src/api/ApiCall";
import { ApiGetCall, ApiGetCallWithPagination } from "/src/api/ApiCall";
import { CippInfoBar } from "../../../components/CippCards/CippInfoBar";
import { ShieldCheckIcon } from "@heroicons/react/24/outline";
import { Apps, Description, Widgets } from "@mui/icons-material";
Expand Down Expand Up @@ -60,7 +60,7 @@ const Page = () => {
queryKey: "ListMSPApps-" + tenantId?.value,
});

const vendorApps = ApiGetCall({
const vendorApps = ApiGetCallWithPagination({
url: "/api/ListGraphRequest",
data: {
Endpoint: "servicePrincipals",
Expand Down Expand Up @@ -193,7 +193,7 @@ const Page = () => {
},
valueField: "appId",
}}
disabled={vendorApps?.data?.Results?.length > 0 ? false : true}
disabled={vendorApps?.data?.pages?.[0]?.Results?.length > 0 ? false : true}
/>
<CippFormComponent
formControl={formControl}
Expand Down

0 comments on commit 517fc23

Please sign in to comment.