| 186 | }; |
| 187 | |
| 188 | const revert = doUpload => { |
| 189 | item.revert( |
| 190 | createRevertFunction(state.options.server.url, state.options.server.revert), |
| 191 | query('GET_FORCE_REVERT') |
| 192 | ) |
| 193 | .then(doUpload ? upload : () => {}) |
| 194 | .catch(() => {}); |
| 195 | }; |
| 196 | |
| 197 | const abort = doUpload => { |
| 198 | item.abortProcessing().then(doUpload ? upload : () => {}); |
no test coverage detected