diff options
author | Serena Feng <feng.xiaowei@zte.com.cn> | 2018-04-04 07:05:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-04-04 07:05:00 +0000 |
commit | f3fb89a2d0f32ad4deeac418aed543630045cea5 (patch) | |
tree | c63576177a96f8586fa6199e4209b4c1a018ff96 /testapi/opnfv_testapi | |
parent | 142603a0c3e0a9ab1b9f76a22cd4816dd45633d1 (diff) | |
parent | 9a456aca098a8fea414c5ec3ae7968242d6cd968 (diff) |
Merge "Fix the state(undefined) error in projects page"
Diffstat (limited to 'testapi/opnfv_testapi')
-rw-r--r-- | testapi/opnfv_testapi/ui/components/projects/projectsController.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testapi/opnfv_testapi/ui/components/projects/projectsController.js b/testapi/opnfv_testapi/ui/components/projects/projectsController.js index 07a58fe..4f0af0f 100644 --- a/testapi/opnfv_testapi/ui/components/projects/projectsController.js +++ b/testapi/opnfv_testapi/ui/components/projects/projectsController.js @@ -167,8 +167,10 @@ ctrl.resultsRequest = $http.get(content_url).success(function (data) { ctrl.data = data; - keepState.filter.projectFilter = { - 'name': ctrl.filterText + if(ctrl.filterText != undefined){ + keepState.filter.projectFilter = { + 'name': ctrl.filterText + } } }).catch(function (data) { ctrl.data = null; |