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:
committed by
Florent Vilmart
parent
cab69b4913
commit
f6312a1b98
@@ -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([]);
|
||||
|
||||
Reference in New Issue
Block a user