From 6f196bf1f79529c3a503bea837c8d2cdcc5074a8 Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Thu, 18 Jan 2024 14:34:47 -0500 Subject: [PATCH] fix(client): dataset ethnicities access --- client/src/components/PeakBoxplot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);