@@ -7,7 +7,7 @@ import { CippFormComponent } from "/src/components/CippComponents/CippFormCompon
7
7
import vendorTenantList from "/src/data/vendorTenantList" ;
8
8
import { Box , Grid , Stack } from "@mui/system" ;
9
9
import { Alert , Divider , Typography } from "@mui/material" ;
10
- import { ApiGetCall } from "/src/api/ApiCall" ;
10
+ import { ApiGetCall , ApiGetCallWithPagination } from "/src/api/ApiCall" ;
11
11
import { CippInfoBar } from "../../../components/CippCards/CippInfoBar" ;
12
12
import { ShieldCheckIcon } from "@heroicons/react/24/outline" ;
13
13
import { Apps , Description , Widgets } from "@mui/icons-material" ;
@@ -60,7 +60,7 @@ const Page = () => {
60
60
queryKey : "ListMSPApps-" + tenantId ?. value ,
61
61
} ) ;
62
62
63
- const vendorApps = ApiGetCall ( {
63
+ const vendorApps = ApiGetCallWithPagination ( {
64
64
url : "/api/ListGraphRequest" ,
65
65
data : {
66
66
Endpoint : "servicePrincipals" ,
@@ -193,7 +193,7 @@ const Page = () => {
193
193
} ,
194
194
valueField : "appId" ,
195
195
} }
196
- disabled = { vendorApps ?. data ?. Results ?. length > 0 ? false : true }
196
+ disabled = { vendorApps ?. data ?. pages ?. [ 0 ] ?. Results ?. length > 0 ? false : true }
197
197
/>
198
198
< CippFormComponent
199
199
formControl = { formControl }
0 commit comments