Skip to content

Commit

Permalink
BENCH-148 added categorical to redux store
Browse files Browse the repository at this point in the history
  • Loading branch information
vivirose committed Nov 30, 2023
1 parent fd8cdb0 commit 097d38a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const defaultState = {
},
summaries: {
summaries: null,
num_test_cases: 0
num_test_cases: 0,
categorical: false
},
data: {
data: null,
Expand Down Expand Up @@ -64,6 +65,7 @@ export const testSuitesReducer = createReducer<TTestSuitesState>(
if (state.currentTestSuite) {
state.currentTestSuite.summaries.summaries = action.payload.summaries;
state.currentTestSuite.summaries.num_test_cases = action.payload.num_test_cases;
state.currentTestSuite.summaries.categorical = action.payload.categorical;
}
}
)
Expand Down
1 change: 1 addition & 0 deletions arthur_bench/server/js/src/Bench/useTestSuites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const useTestSuites = () => {
actions.fetchTestRunSummaryReceive({
summaries: r.data.summary,
num_test_cases: r.data.num_test_cases,
categorical: r.data.categorical
})
);
});
Expand Down

0 comments on commit 097d38a

Please sign in to comment.