diff options
author | thuva4 <tharma.thuva@gmail.com> | 2018-03-31 11:14:50 +0530 |
---|---|---|
committer | thuva4 <tharma.thuva@gmail.com> | 2018-03-31 11:19:27 +0530 |
commit | 9a456aca098a8fea414c5ec3ae7968242d6cd968 (patch) | |
tree | 0d964a28ab4b90ab2041f42200814f95dba912c9 | |
parent | c20c8286d72ca64751162b1932e0e3f680f0e32f (diff) |
Fix the state(undefined) error in projects page
Change-Id: I7dc927aa3288df0b7e0656a2b1271780bfaddfeb
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
-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; |