We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2d99bf4 + baab981 commit ebcdb1eCopy full SHA for ebcdb1e
lib/services/alter-items.js
@@ -17,7 +17,9 @@ module.exports = function (func) {
17
18
const results = (isArray ? items : [items]).map(item => func(item, context));
19
20
- const hasPromises = results.some(result => typeof result === 'object' && typeof result.then === 'function');
+ const hasPromises = results.some(result =>
21
+ typeof result === 'object' && result !== null && typeof result.then === 'function'
22
+ );
23
24
const setItem = (value, index) => {
25
if (typeof value === 'object' && value !== null) {
0 commit comments