From 2975071965b25b814cdee1b13ed7e5faa10b63d3 Mon Sep 17 00:00:00 2001 From: Chau Tran Date: Wed, 24 Feb 2021 14:20:54 -0600 Subject: [PATCH] fix(core): run beforeMap in mapArray with an empty array instead --- packages/core/src/lib/map/map.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/lib/map/map.ts b/packages/core/src/lib/map/map.ts index 286846e3e..8b2180aee 100644 --- a/packages/core/src/lib/map/map.ts +++ b/packages/core/src/lib/map/map.ts @@ -399,7 +399,7 @@ export function mapArray< // run beforeMap for the whole map operation if (beforeMap) { - beforeMap(sourceArray, destinationArray); + beforeMap(sourceArray, []); } // loop through each item and run map() for each