Merge "Fix TypeError: Cannot read property 'length' of undefined"

This commit is contained in:
Kasper Nilsson
2017-07-28 00:52:55 +00:00
committed by Gerrit Code Review

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) &&