Skip to content

Commit

Permalink
fix: change empty string to null character
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramk committed Mar 26, 2024
1 parent 4a130ab commit e5bd1dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nerdlets/service-containers/heat-maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div>
{HEAT_MAPS.map(({ title, select, formatValue, eventType, max }) => {
Expand All @@ -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;
}

Expand Down

0 comments on commit e5bd1dd

Please sign in to comment.