commit | 09bc125f2e4c21404d0b137847e2c92a1a33e072 | [log] [tgz] |
---|---|---|
author | Paladox none <thomasmulhall410@yahoo.com> | Sat Oct 05 22:18:19 2019 +0000 |
committer | Paladox none <thomasmulhall410@yahoo.com> | Sat Oct 05 22:18:58 2019 +0000 |
tree | e13cac87da739e2cee97e699498ea2c2363dcd62 | |
parent | 99fb8f44dc31bb22029579547043d8446c1c94be [diff] |
Add undefined check to getZuulStatus Change-Id: I65ec78fa4fac5a8a3adabc6d9e51b694c0e56594
diff --git a/src/main/resources/static/zuul-status-view.js b/src/main/resources/static/zuul-status-view.js index e5df740..3c8575c 100644 --- a/src/main/resources/static/zuul-status-view.js +++ b/src/main/resources/static/zuul-status-view.js
@@ -185,6 +185,8 @@ * @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) {