Skip to content
Snippets Groups Projects
Commit 65231cba authored by Sebastian's avatar Sebastian
Browse files

fix(components-faraday): fix conflict when uploading files

parent dde25c50
No related branches found
No related tags found
No related merge requests found
...@@ -162,7 +162,9 @@ export default compose( ...@@ -162,7 +162,9 @@ export default compose(
[type]: [...files[type], file], [type]: [...files[type], file],
} }
setFiles(newFiles) setFiles(newFiles)
changeForm('wizard', 'files', newFiles) setTimeout(() => {
changeForm('wizard', 'files', newFiles)
}, 1000)
}) })
.catch(e => console.error(`Couldn't upload file.`, e)) .catch(e => console.error(`Couldn't upload file.`, e))
}, },
......
...@@ -6005,10 +6005,6 @@ locate-path@^2.0.0: ...@@ -6005,10 +6005,6 @@ locate-path@^2.0.0:
p-locate "^2.0.0" p-locate "^2.0.0"
path-exists "^3.0.0" path-exists "^3.0.0"
lodash-es@4.13.1:
version "4.13.1"
resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.13.1.tgz#3daa36f23f09ede092a6f88833ffde08f7b8593c"
lodash-es@^4.17.3, lodash-es@^4.17.5, lodash-es@^4.2.1: lodash-es@^4.17.3, lodash-es@^4.17.5, lodash-es@^4.2.1:
version "4.17.5" version "4.17.5"
resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.5.tgz#9fc6e737b1c4d151d8f9cae2247305d552ce748f" resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.5.tgz#9fc6e737b1c4d151d8f9cae2247305d552ce748f"
...@@ -8087,14 +8083,6 @@ pubsweet-component-signup@^1.0.0: ...@@ -8087,14 +8083,6 @@ pubsweet-component-signup@^1.0.0:
react-router "^4.2.0" react-router "^4.2.0"
redux "^3.7.2" redux "^3.7.2"
pubsweet-component-xpub-manuscript@^0.0.3:
version "0.0.3"
resolved "https://registry.yarnpkg.com/pubsweet-component-xpub-manuscript/-/pubsweet-component-xpub-manuscript-0.0.3.tgz#574f81db6abd51d6ba443520dafd306b56471978"
dependencies:
wax-editor-react "^0.1.10"
xpub-connect "^0.0.3"
xpub-selectors "^0.0.3"
pubsweet-server@^1.0.1, pubsweet-server@^1.1.1: pubsweet-server@^1.0.1, pubsweet-server@^1.1.1:
version "1.1.1" version "1.1.1"
resolved "https://registry.yarnpkg.com/pubsweet-server/-/pubsweet-server-1.1.1.tgz#89f16393bd947cec8cb5131b770101f21ef35911" resolved "https://registry.yarnpkg.com/pubsweet-server/-/pubsweet-server-1.1.1.tgz#89f16393bd947cec8cb5131b770101f21ef35911"
...@@ -8332,15 +8320,6 @@ react-dnd@^2.5.4: ...@@ -8332,15 +8320,6 @@ react-dnd@^2.5.4:
lodash "^4.2.0" lodash "^4.2.0"
prop-types "^15.5.10" prop-types "^15.5.10"
"react-dom@>=15.0.0 <17.0.0", react-dom@^16.1.0, react-dom@^16.2.0:
version "16.2.0"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.2.0.tgz#69003178601c0ca19b709b33a83369fe6124c044"
dependencies:
fbjs "^0.8.16"
loose-envify "^1.1.0"
object-assign "^4.1.1"
prop-types "^15.6.0"
react-dom@^15.6.1: react-dom@^15.6.1:
version "15.6.2" version "15.6.2"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.6.2.tgz#41cfadf693b757faf2708443a1d1fd5a02bef730" resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.6.2.tgz#41cfadf693b757faf2708443a1d1fd5a02bef730"
...@@ -8350,6 +8329,15 @@ react-dom@^15.6.1: ...@@ -8350,6 +8329,15 @@ react-dom@^15.6.1:
object-assign "^4.1.0" object-assign "^4.1.0"
prop-types "^15.5.10" prop-types "^15.5.10"
react-dom@^16.1.0, react-dom@^16.2.0:
version "16.2.0"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.2.0.tgz#69003178601c0ca19b709b33a83369fe6124c044"
dependencies:
fbjs "^0.8.16"
loose-envify "^1.1.0"
object-assign "^4.1.1"
prop-types "^15.6.0"
react-feather@^1.0.8: react-feather@^1.0.8:
version "1.0.8" version "1.0.8"
resolved "https://registry.yarnpkg.com/react-feather/-/react-feather-1.0.8.tgz#69b13d5c729949f194d33201dee91bab67fa31a2" resolved "https://registry.yarnpkg.com/react-feather/-/react-feather-1.0.8.tgz#69b13d5c729949f194d33201dee91bab67fa31a2"
...@@ -8444,15 +8432,6 @@ react-transition-group@^2.0.0, react-transition-group@^2.2.0: ...@@ -8444,15 +8432,6 @@ react-transition-group@^2.0.0, react-transition-group@^2.2.0:
prop-types "^15.5.8" prop-types "^15.5.8"
warning "^3.0.0" warning "^3.0.0"
"react@>=15.0.0 <17.0.0", react@^16.1.0, react@^16.2.0:
version "16.2.0"
resolved "https://registry.yarnpkg.com/react/-/react-16.2.0.tgz#a31bd2dab89bff65d42134fa187f24d054c273ba"
dependencies:
fbjs "^0.8.16"
loose-envify "^1.1.0"
object-assign "^4.1.1"
prop-types "^15.6.0"
react@^15.6.1: react@^15.6.1:
version "15.6.2" version "15.6.2"
resolved "https://registry.yarnpkg.com/react/-/react-15.6.2.tgz#dba0434ab439cfe82f108f0f511663908179aa72" resolved "https://registry.yarnpkg.com/react/-/react-15.6.2.tgz#dba0434ab439cfe82f108f0f511663908179aa72"
...@@ -8463,6 +8442,15 @@ react@^15.6.1: ...@@ -8463,6 +8442,15 @@ react@^15.6.1:
object-assign "^4.1.0" object-assign "^4.1.0"
prop-types "^15.5.10" prop-types "^15.5.10"
react@^16.1.0, react@^16.2.0:
version "16.2.0"
resolved "https://registry.yarnpkg.com/react/-/react-16.2.0.tgz#a31bd2dab89bff65d42134fa187f24d054c273ba"
dependencies:
fbjs "^0.8.16"
loose-envify "^1.1.0"
object-assign "^4.1.1"
prop-types "^15.6.0"
read-cmd-shim@^1.0.1: read-cmd-shim@^1.0.1:
version "1.0.1" version "1.0.1"
resolved "https://registry.yarnpkg.com/read-cmd-shim/-/read-cmd-shim-1.0.1.tgz#2d5d157786a37c055d22077c32c53f8329e91c7b" resolved "https://registry.yarnpkg.com/read-cmd-shim/-/read-cmd-shim-1.0.1.tgz#2d5d157786a37c055d22077c32c53f8329e91c7b"
...@@ -9678,12 +9666,6 @@ sublevel-pouchdb@6.4.3: ...@@ -9678,12 +9666,6 @@ sublevel-pouchdb@6.4.3:
ltgt "2.2.0" ltgt "2.2.0"
readable-stream "1.0.33" readable-stream "1.0.33"
substance@1.0.0-beta.6.5:
version "1.0.0-beta.6.5"
resolved "https://registry.yarnpkg.com/substance/-/substance-1.0.0-beta.6.5.tgz#0aa591d8e02445c980965c9c3eeb82479f1614ad"
dependencies:
lodash-es "4.13.1"
sugarss@^1.0.0: sugarss@^1.0.0:
version "1.0.1" version "1.0.1"
resolved "https://registry.yarnpkg.com/sugarss/-/sugarss-1.0.1.tgz#be826d9003e0f247735f92365dc3fd7f1bae9e44" resolved "https://registry.yarnpkg.com/sugarss/-/sugarss-1.0.1.tgz#be826d9003e0f247735f92365dc3fd7f1bae9e44"
...@@ -10499,25 +10481,6 @@ watchpack@^1.4.0: ...@@ -10499,25 +10481,6 @@ watchpack@^1.4.0:
chokidar "^1.7.0" chokidar "^1.7.0"
graceful-fs "^4.1.2" graceful-fs "^4.1.2"
wax-editor-core@^0.3.9:
version "0.3.9"
resolved "https://registry.yarnpkg.com/wax-editor-core/-/wax-editor-core-0.3.9.tgz#6ef357db52288496815a28b804c13299f844f0ec"
dependencies:
font-awesome "^4.7.0"
lodash "^4.17.4"
substance "1.0.0-beta.6.5"
wax-editor-react@^0.1.10:
version "0.1.10"
resolved "https://registry.yarnpkg.com/wax-editor-react/-/wax-editor-react-0.1.10.tgz#77b90f2876e8e62a5c0b9e1683def08afc66f648"
dependencies:
lodash "^4.17.4"
prop-types "^15.6.0"
react ">=15.0.0 <17.0.0"
react-dom ">=15.0.0 <17.0.0"
react-router-dom "^4.2.2"
wax-editor-core "^0.3.9"
wcwidth@^1.0.0: wcwidth@^1.0.0:
version "1.0.1" version "1.0.1"
resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment