We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08b87ee commit c9ec0a1Copy full SHA for c9ec0a1
src/actions/actions.js
@@ -62,7 +62,6 @@ export function onSubmit(sequence, databases) {
62
63
export function onMultipleSubmit(sequence, databases) {
64
let jobIds = [];
65
- let lastQuery = sequence[sequence.length - 1];
66
67
return function(dispatch) {
68
for (var i = 0; i < sequence.length; i++) {
@@ -89,7 +88,7 @@ export function onMultipleSubmit(sequence, databases) {
89
88
})
90
.then(data => {
91
jobIds.push(data.job_id);
92
- if (newQuery === lastQuery) {
+ if (jobIds.length === sequence.length) {
93
dispatch({type: types.SUBMIT_MULTIPLE_JOB, status: 'success', data: jobIds});
94
}
95
0 commit comments