diff --git a/@xen-orchestra/async-map/index.js b/@xen-orchestra/async-map/index.js index 942fa1aff..541e9c515 100644 --- a/@xen-orchestra/async-map/index.js +++ b/@xen-orchestra/async-map/index.js @@ -36,7 +36,7 @@ exports.asyncMapSettled = function asyncMapSettled(iterable, mapFn, thisArg = it } } const onValue = (i, value) => { - const hasError = result !== undefined + const hasError = result === undefined if (!hasError) { result[i] = value }