From ea4c490283f006653df6070bb89159d1107fb99f Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 27 Jun 2017 13:02:40 +0200 Subject: [PATCH] bookmarks: bugfix, `deferred` might be null --- src/converse-bookmarks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/converse-bookmarks.js b/src/converse-bookmarks.js index e27e8800b..47d15ddb8 100644 --- a/src/converse-bookmarks.js +++ b/src/converse-bookmarks.js @@ -344,7 +344,7 @@ window.sessionStorage.setItem(this.cached_flag, true); _converse.log('Error while fetching bookmarks'); _converse.log(iq); - if (!_.isUndefined(deferred)) { + if (!_.isNil(deferred)) { return deferred.reject(); } }