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,