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

Clear out queryResult when initializing QB

parent 310cce51
No related branches found
No related tags found
No related merge requests found
......@@ -130,8 +130,9 @@ export const tableForeignKeyReferences = handleActions({
// the result of a query execution. optionally an error if the query fails to complete successfully.
export const queryResult = handleActions({
[QUERY_COMPLETED]: { next: (state, { payload }) => payload.queryResult},
[QUERY_ERRORED]: { next: (state, { payload }) => payload ? payload : state}
[QUERY_COMPLETED]: { next: (state, { payload }) => payload.queryResult },
[QUERY_ERRORED]: { next: (state, { payload }) => payload ? payload : state },
[INITIALIZE_QB]: { next: (state, { payload }) => null }
}, null);
// promise used for tracking a query execution in progress. when a query is started we capture this.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment