Skip to content

Commit

Permalink
fix(website): explicitly specify views on gs-aggregate
Browse files Browse the repository at this point in the history
To prepare for GenSpectrum/dashboard-components#639.
Otherwise, we will have unexpected bar charts.
  • Loading branch information
fengelniederhammer committed Jan 13, 2025
1 parent 6b09aef commit fa406fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/src/components/genspectrum/GsAggregate.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { type LapisFilter } from '@genspectrum/dashboard-components/util';
import { type LapisFilter, views } from '@genspectrum/dashboard-components/util';
import { defaultTablePageSize } from '../../views/View';
import ComponentWrapper from '../ComponentWrapper.astro';
Expand All @@ -16,6 +16,7 @@ const { title, height, fields, lapisFilter } = Astro.props;

<ComponentWrapper title={title} height={height}>
<gs-aggregate
views={JSON.stringify([views.table])}
fields={JSON.stringify(fields)}
lapisFilter={JSON.stringify(lapisFilter)}
pageSize={defaultTablePageSize}
Expand Down

0 comments on commit fa406fc

Please sign in to comment.