Fix TypeError: Cannot read property 'length' of undefined

Bug: Issue 6838
Change-Id: I6c8529f2abf2354654e0bb34b9244bd2cd16b579
This commit is contained in:
Paladox none
2017-07-25 17:04:29 +00:00
parent bdd9301861
commit c3983b29ca

View File

@@ -118,6 +118,7 @@
this._changesPerPage = prefs.changes_per_page;
return this._getChanges();
}).then(changes => {
changes = changes || [];
if (this._query && changes.length === 1) {
for (const query in LookupQueryPatterns) {
if (LookupQueryPatterns.hasOwnProperty(query) &&