From 62d48bd59d11a0a1867cc3c9238ddda412775838 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Thu, 20 Sep 2018 10:04:09 +0200 Subject: [PATCH] =?UTF-8?q?fix(async-map):=20apply=20=E2=86=92=20call=20:c?= =?UTF-8?q?onfounded:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #3431 --- @xen-orchestra/async-map/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/@xen-orchestra/async-map/src/index.js b/@xen-orchestra/async-map/src/index.js index f80a6cc4f..b63c391f8 100644 --- a/@xen-orchestra/async-map/src/index.js +++ b/@xen-orchestra/async-map/src/index.js @@ -16,7 +16,7 @@ import map from 'lodash/map' const asyncMap = (collection, iteratee) => { let then if (collection != null && typeof (then = collection.then) === 'function') { - return then.apply(collection, collection => asyncMap(collection, iteratee)) + return then.call(collection, collection => asyncMap(collection, iteratee)) } let errorContainer