MCPcopy
hub / github.com/pqina/filepond / revert

Function revert

src/js/app/actions.js:188–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 : () => {});

Callers 1

actionsFunction · 0.70

Calls 2

createRevertFunctionFunction · 0.90
queryFunction · 0.85

Tested by

no test coverage detected