Skip to content

Commit

Permalink
fix(client): dataset ethnicities access
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Jan 18, 2024
1 parent 807b70d commit 6f196bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/PeakBoxplot.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {useNode, useCurrentDataset} from "../hooks";
function PeakBoxplot({ title, peak, /*values = defaultValues*/ }) {
const dataset = useCurrentDataset();

const ethnicities = useMemo(() => dataset.data?.ethnicities ?? [], [dataset]);
const ethnicities = useMemo(() => dataset?.ethnicities ?? [], [dataset]);
const node = useNode();
const usePrecomputed = useSelector(state => state.ui.usePrecomputed);

Expand Down

0 comments on commit 6f196bf

Please sign in to comment.