Skip to content

Commit

Permalink
Merge pull request #147 from bento-platform/patch-beacon-redux
Browse files Browse the repository at this point in the history
patch condition for parsing beacon response
  • Loading branch information
gsfk authored Feb 14, 2024
2 parents 0f615b9 + eb1a30b commit 3db767e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/features/beacon/beaconQuery.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3db767e

Please sign in to comment.