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 chejimmy committed Mar 21, 2024
1 parent 45c155b commit 7418773
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 7418773

Please sign in to comment.