Correct check for undefined variable (#2693)

The code was comparing the result of `typeof` with a variable named `undefined`.

As typeof returns a string it should compare to `'undefined'`
This commit is contained in:
Mathias Rangel Wulff
2016-09-10 23:32:10 +02:00
committed by Florent Vilmart
parent cab69b4913
commit f6312a1b98

View File

@@ -262,7 +262,7 @@ RestWrite.prototype.findUsersWithAuthData = function(authData) {
memo.push(query);
return memo;
}, []).filter((q) => {
return typeof q !== undefined;
return typeof q !== 'undefined';
});
let findPromise = Promise.resolve([]);