Skip to content

Commit

Permalink
Fix problem where revert call would revert wrong file item
Browse files Browse the repository at this point in the history
  • Loading branch information
rikschennink committed Nov 16, 2018
1 parent 7d8d6a4 commit 575403a
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,10 @@
# Changelog

## 3.3.2

- Fix problem where revert call would revert wrong file item.


## 3.3.1

- Fix problem where exceeding the max file limit would not throw an error
Expand Down
2 changes: 1 addition & 1 deletion dist/filepond.css
@@ -1,5 +1,5 @@
/*
* FilePond 3.3.1
* FilePond 3.3.2
* Licensed under MIT, https://opensource.org/licenses/MIT
* Please visit https://pqina.nl/filepond for details.
*/
Expand Down
4 changes: 2 additions & 2 deletions dist/filepond.esm.js
@@ -1,5 +1,5 @@
/*
* FilePond 3.3.1
* FilePond 3.3.2
* Licensed under MIT, https://opensource.org/licenses/MIT
* Please visit https://pqina.nl/filepond for details.
*/
Expand Down Expand Up @@ -4066,7 +4066,7 @@ const actions = (dispatch, query, state) => ({
REQUEST_REVERT_ITEM_PROCESSING: getItemByQueryFromState(state, item => {
// not instant uploading, revert immidiately
if (!state.options.instantUpload) {
dispatch('REVERT_ITEM_PROCESSING');
dispatch('REVERT_ITEM_PROCESSING', { query: item });
return;
}

Expand Down
4 changes: 2 additions & 2 deletions dist/filepond.esm.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/filepond.js
@@ -1,5 +1,5 @@
/*
* FilePond 3.3.1
* FilePond 3.3.2
* Licensed under MIT, https://opensource.org/licenses/MIT
* Please visit https://pqina.nl/filepond for details.
*/
Expand Down Expand Up @@ -4839,7 +4839,7 @@ function signature:
) {
// not instant uploading, revert immidiately
if (!state.options.instantUpload) {
dispatch('REVERT_ITEM_PROCESSING');
dispatch('REVERT_ITEM_PROCESSING', { query: item });
return;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/filepond.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/filepond.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "filepond",
"version": "3.3.1",
"version": "3.3.2",
"description": "FilePond, Where files go to stretch their bits.",
"homepage": "https://pqina.nl/filepond",
"repository": "pqina/filepond",
Expand Down

0 comments on commit 575403a

Please sign in to comment.