diff options
author | Serena Feng <feng.xiaowei@zte.com.cn> | 2018-04-04 07:03:33 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-04-04 07:03:33 +0000 |
commit | 142603a0c3e0a9ab1b9f76a22cd4816dd45633d1 (patch) | |
tree | a958a06a9d15de8401aa9a7fcf3221139fbc7828 /testapi | |
parent | ee78e8f964d7929af27f09449e7aee16a1150648 (diff) | |
parent | b27da61cf4b6ecb2e2a22f0084c27b5778b6c4a8 (diff) |
Merge "Fix the state(undefined) error in pods page"
Diffstat (limited to 'testapi')
-rw-r--r-- | testapi/opnfv_testapi/ui/components/pods/podsController.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testapi/opnfv_testapi/ui/components/pods/podsController.js b/testapi/opnfv_testapi/ui/components/pods/podsController.js index f405ecb..c50fa5a 100644 --- a/testapi/opnfv_testapi/ui/components/pods/podsController.js +++ b/testapi/opnfv_testapi/ui/components/pods/podsController.js @@ -117,8 +117,10 @@ $http.get(reqURL).success(function (data) { ctrl.data = data; ctrl.sortBy("name") - keepState.filter.podFilter = { - 'name': ctrl.filterText + if(ctrl.filterText != undefined){ + keepState.filter.podFilter = { + 'name': ctrl.filterText + } } }).catch(function (data) { ctrl.data = null; |