Skip to content
Snippets Groups Projects
Commit aa2b01ec authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix qb error stateS

parent 47aa7b37
Branches
Tags
No related merge requests found
......@@ -254,9 +254,11 @@ export const lastRunCard = handleActions(
export const queryResults = handleActions(
{
[RESET_QB]: { next: (state, { payload }) => null },
[QUERY_COMPLETED]: { next: (state, { payload }) => payload.queryResults },
[QUERY_COMPLETED]: {
next: (state, { payload }) => payload.queryResults,
},
[QUERY_ERRORED]: {
next: (state, { payload }) => (payload ? payload : state),
next: (state, { payload }) => (payload ? [payload] : state),
},
[CLEAR_QUERY_RESULT]: { next: (state, { payload }) => null },
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment