Skip to content

Commit

Permalink
fix: datastream not show unit if it's undefined #2660
Browse files Browse the repository at this point in the history
  • Loading branch information
chandrashekhara.n authored and dpportet committed Mar 13, 2024
1 parent 44a866f commit f8306a7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ const mapDataStreamInformation = ({
return valueMap;
}, {});

const dataStreamName = visibleContent?.unit ? `${name} (${unit})` : name;
const dataStreamName =
visibleContent?.unit && unit ? `${name} (${unit})` : name;
const maxValue = dataStreamMaxes[id] ?? '-';
const minValue = dataStreamMins[id] ?? '-';

Expand Down

0 comments on commit f8306a7

Please sign in to comment.