From b09a2ebf75547a06cfff9a7015a58f09d1029f5f Mon Sep 17 00:00:00 2001 From: Jorge Date: Tue, 19 Feb 2019 18:14:50 +0000 Subject: [PATCH] chore: Replace wrong usage of map with a forEach --- packages/components/src/drop-zone/provider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/drop-zone/provider.js b/packages/components/src/drop-zone/provider.js index 5e77c74d5b958..43fc3d76c562c 100644 --- a/packages/components/src/drop-zone/provider.js +++ b/packages/components/src/drop-zone/provider.js @@ -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( {