@@ -7,7 +7,7 @@ import { CippFormComponent } from "/src/components/CippComponents/CippFormCompon
77import vendorTenantList from "/src/data/vendorTenantList" ;
88import { Box , Grid , Stack } from "@mui/system" ;
99import { Alert , Divider , Typography } from "@mui/material" ;
10- import { ApiGetCall } from "/src/api/ApiCall" ;
10+ import { ApiGetCall , ApiGetCallWithPagination } from "/src/api/ApiCall" ;
1111import { CippInfoBar } from "../../../components/CippCards/CippInfoBar" ;
1212import { ShieldCheckIcon } from "@heroicons/react/24/outline" ;
1313import { Apps , Description , Widgets } from "@mui/icons-material" ;
@@ -60,7 +60,7 @@ const Page = () => {
6060 queryKey : "ListMSPApps-" + tenantId ?. value ,
6161 } ) ;
6262
63- const vendorApps = ApiGetCall ( {
63+ const vendorApps = ApiGetCallWithPagination ( {
6464 url : "/api/ListGraphRequest" ,
6565 data : {
6666 Endpoint : "servicePrincipals" ,
@@ -193,7 +193,7 @@ const Page = () => {
193193 } ,
194194 valueField : "appId" ,
195195 } }
196- disabled = { vendorApps ?. data ?. Results ?. length > 0 ? false : true }
196+ disabled = { vendorApps ?. data ?. pages ?. [ 0 ] ?. Results ?. length > 0 ? false : true }
197197 />
198198 < CippFormComponent
199199 formControl = { formControl }
0 commit comments