Skip to content

Commit

Permalink
Fix file upload iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
amazon-meaisiah committed Mar 24, 2020
1 parent ff4bc3e commit 12dbd50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-portal/src/pages/Admin/ApiManagement.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const ApiManagement = observer(class ApiManagement extends React.Componen

if (files.length > 0) {
this.setState(prev => ({ ...prev, errors: [] }))
files.forEach(file => {
;[].forEach.call(files, file => {
const reader = new window.FileReader()

reader.onload = (e) => {
Expand Down

0 comments on commit 12dbd50

Please sign in to comment.