From eb1a30b2accba7112ce4edab6f89afaed57f331d Mon Sep 17 00:00:00 2001 From: Gordon Krieger Date: Tue, 13 Feb 2024 21:15:05 -0500 Subject: [PATCH] patch condition for parsing beacon response --- src/js/features/beacon/beaconQuery.store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/features/beacon/beaconQuery.store.ts b/src/js/features/beacon/beaconQuery.store.ts index 7b3dc05e..cbe7be57 100644 --- a/src/js/features/beacon/beaconQuery.store.ts +++ b/src/js/features/beacon/beaconQuery.store.ts @@ -53,7 +53,7 @@ const beaconQuery = createSlice({ state.isFetchingQueryResponse = true; }); builder.addCase(makeBeaconQuery.fulfilled, (state, { payload }) => { - if (payload.info) { + if (payload.info?.bento) { state.biosampleCount = payload.info.bento?.biosamples?.count; state.biosampleChartData = serializeChartData(payload.info.bento?.biosamples?.sampled_tissue); state.experimentCount = payload.info.bento?.experiments?.count;