Skip to content

Commit

Permalink
Merge pull request #181 from bento-platform/consistent-nodata-charts
Browse files Browse the repository at this point in the history
made nodata rendering consistent
  • Loading branch information
SanjeevLakhwani authored Sep 12, 2024
2 parents b1658c2 + 4603483 commit 339a7e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/Overview/ChartCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const ChartCard: React.FC<ChartCardProps> = memo(({ section, chart, onRemoveChar
</Space>
}
>
{data.filter((e) => !(e.x === 'missing')).length !== 0 ? (
{data.filter((e) => !(e.x === 'missing')).reduce((acc, cur) => acc + cur.y, 0) !== 0 ? (
<Chart
chartConfig={chartConfig}
data={data}
Expand Down

0 comments on commit 339a7e2

Please sign in to comment.