From e4abf1870864cc3e2d6764f79da13acf6976026f Mon Sep 17 00:00:00 2001 From: goenning Date: Tue, 28 Dec 2021 14:57:30 +0000 Subject: [PATCH] replace null with undefined Signed-off-by: goenning --- plugins/tech-insights/src/api/TechInsightsClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tech-insights/src/api/TechInsightsClient.ts b/plugins/tech-insights/src/api/TechInsightsClient.ts index d9d56f8048..2298f463f5 100644 --- a/plugins/tech-insights/src/api/TechInsightsClient.ts +++ b/plugins/tech-insights/src/api/TechInsightsClient.ts @@ -72,7 +72,7 @@ export class TechInsightsClient implements TechInsightsApi { const token = await this.identityApi.getIdToken(); const { namespace, kind, name } = entityParams; const checkIds = checks ? checks.map(check => check.id) : []; - const requestBody = { checks: checkIds.length > 0 ? checkIds : null }; + const requestBody = { checks: checkIds.length > 0 ? checkIds : undefined }; const response = await fetch( `${url}/checks/run/${encodeURIComponent(namespace)}/${encodeURIComponent( kind,