Skip to content

Commit 04d8b3b

Browse files
committed
Deal with batch queries
1 parent 9c1209f commit 04d8b3b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/actions/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function onSubmit(sequence, databases) {
6363
export function onMultipleSubmit(sequence, databases) {
6464
let jobIds = [];
6565

66-
return function(dispatch) {
66+
return async function(dispatch) {
6767
for (var i = 0; i < sequence.length; i++) {
6868
let newQuery = sequence[i];
6969
newQuery && fetch(routes.submitJob(), {

src/reducers/rootReducer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ const rootReducer = function (state = initialState, action) {
159159
jobId: null,
160160
sequence: "",
161161
hits: null,
162-
status: "notSubmitted",
162+
status: "loading",
163163
entries: [],
164164
facets: [],
165165
hitCount: 0,
@@ -169,7 +169,7 @@ const rootReducer = function (state = initialState, action) {
169169
selectedFacets: {},
170170
alignmentsCollapsed: true,
171171
textSearchError: false,
172-
infernalStatus: "notSubmitted",
172+
infernalStatus: "loading",
173173
infernalEntries: [],
174174
exactMatch: null,
175175
});

0 commit comments

Comments
 (0)