diff --git a/client/src/components/PeakBoxplot.js b/client/src/components/PeakBoxplot.js index 48bae9be..5461af09 100644 --- a/client/src/components/PeakBoxplot.js +++ b/client/src/components/PeakBoxplot.js @@ -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);