Skip to content

Commit

Permalink
chore: Replace wrong usage of map with forEach (#13953)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Feb 19, 2019
1 parent 4e9b6b5 commit bf3940f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/drop-zone/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class DropZoneProvider extends Component {
}

// Notifying the dropzones
toUpdate.map( ( dropZone ) => {
toUpdate.forEach( ( dropZone ) => {
const index = this.dropZones.indexOf( dropZone );
const isDraggingOverDropZone = index === hoveredDropZoneIndex;
dropZone.setState( {
Expand Down

0 comments on commit bf3940f

Please sign in to comment.