Skip to content

Commit

Permalink
fix: fix ternary in story
Browse files Browse the repository at this point in the history
  • Loading branch information
rshen91 committed Sep 3, 2021
1 parent 6785db6 commit 38147b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storybook/stories/heatmap/2_categorical.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import { BABYNAME_DATA } from '@elastic/charts/src/utils/data_samples/babynames'
import { useBaseTheme } from '../../use_base_theme';

export const Example = () => {
const filterData = boolean('filter BABYNAME_DATA', false);
const data = filterData ? BABYNAME_DATA : BABYNAME_DATA.filter(([year]) => year > 1950 && year < 1960);
const filterData = boolean('filter dataset', true);
const data = filterData ? BABYNAME_DATA.filter(([year]) => year > 1950 && year < 1960) : BABYNAME_DATA;

return (
<Chart>
Expand Down

0 comments on commit 38147b4

Please sign in to comment.