Skip to content

Commit

Permalink
Merge pull request keplergl#56 from EDiT/bugfix/BUBR-833-small-fixes
Browse files Browse the repository at this point in the history
[BUBR-833] small fixes
  • Loading branch information
Ismail Kutlu (imec) authored and GitHub Enterprise committed Jun 15, 2022
2 parents abd8f1b + aab683e commit 1b0942a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -123,6 +123,7 @@ const OdtDatasetsPanel = () => {
},
}),
);
dispatch(averageSeriesAction());
dispatch(showLegend());
const { layers } = keplerState().visState;
const oldLayer = layers.find((l: any) => l.config.dataId === dataId);
Expand Down
Expand Up @@ -47,14 +47,14 @@ const BaseEntriesInfo = ({ fields, data, layer }: Props) => {
}

let value = Number(values.value || values.current);
if (value && !Number.isNaN(value)) {
if (value >= 0 && !Number.isNaN(value)) {
value = Math.round((value + Number.EPSILON) * 100) / 100;
}

return (
<div className="block text-center pt-2">
<div className="font-bold">{values.name}</div>
{value && (
{value >= 0 && (
<div className="font-bold text-2xl mb-4">
{value}
<span className="text-sm ml-1">{values.unit || defaultUnit}</span>
Expand Down

0 comments on commit 1b0942a

Please sign in to comment.