From bf899d54905d213dfb5c26ab5c64035a59f1331e Mon Sep 17 00:00:00 2001 From: Harminder Singh Date: Sun, 19 Feb 2023 10:20:21 +0530 Subject: [PATCH] removed typecasting in return value --- .../src/common/services/GraphService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/react-m365-services-health/src/common/services/GraphService.ts b/samples/react-m365-services-health/src/common/services/GraphService.ts index ae6c1eee8..177ad4856 100644 --- a/samples/react-m365-services-health/src/common/services/GraphService.ts +++ b/samples/react-m365-services-health/src/common/services/GraphService.ts @@ -17,6 +17,6 @@ export class GraphService { const client = await this.getClient(); const request: GraphRequest = client.api("/admin/serviceAnnouncement/healthOverviews"); const response = await request.expand("issues").get(); - return Promise.resolve(response.value as ServiceHealth[]); + return Promise.resolve(response.value); }; }