replace null with undefined

Signed-off-by: goenning <me@goenning.net>
This commit is contained in:
goenning
2021-12-28 14:57:30 +00:00
parent e1aed5231f
commit e4abf18708
@@ -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,