Merge "Remove _legacyUndefinedCheck"
diff --git a/src/main/resources/static/zuul-status-view.js b/src/main/resources/static/zuul-status-view.js
index 4d0c3e2..2073f78 100644
--- a/src/main/resources/static/zuul-status-view.js
+++ b/src/main/resources/static/zuul-status-view.js
@@ -184,8 +184,6 @@
* @return {Promise} Resolves to a fetch Response object.
*/
async getZuulStatus(change, revision) {
- if (!change || !revision) return [];
-
const response = await this._getReponse(change, revision);
if (response && response.status && response.status === 200) {
@@ -204,6 +202,8 @@
* @return {Promise} Resolves to a fetch Response object.
*/
async _getReponse(change, revision) {
+ if (!change || !revision) return false;
+
const url = this.zuulTenant === null ?
`${this.zuulUrl}${change._number},${revision._number}` :
`${this.zuulUrl}/api/tenant/${this.zuulTenant}/status/change/${change._number},${revision._number}`;