From e5bd1dd11c2d09d80ffe4123e47ce2aa668ba0eb Mon Sep 17 00:00:00 2001 From: shahramk Date: Tue, 26 Mar 2024 15:24:57 -0700 Subject: [PATCH] fix: change empty string to null character --- nerdlets/service-containers/heat-maps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nerdlets/service-containers/heat-maps.js b/nerdlets/service-containers/heat-maps.js index e9da99e..bc30bca 100644 --- a/nerdlets/service-containers/heat-maps.js +++ b/nerdlets/service-containers/heat-maps.js @@ -89,7 +89,7 @@ export default class ContainerHeatMap extends React.PureComponent { const { entity, infraAccount, selectContainer, containerId } = this.props; const { timeRange, where } = this.state; - if (!infraAccount || !timeRange) return ''; + if (!infraAccount || !timeRange) return null; return (
{HEAT_MAPS.map(({ title, select, formatValue, eventType, max }) => { @@ -100,7 +100,7 @@ export default class ContainerHeatMap extends React.PureComponent { // a heatmap for infra metrics // ALSO need a different time window to get accurate values if (eventType === 'ProcessSample') { - if (!infraAccount) return ''; + if (!infraAccount) return null; accountId = infraAccount.id; }