From 9a456aca098a8fea414c5ec3ae7968242d6cd968 Mon Sep 17 00:00:00 2001 From: thuva4 Date: Sat, 31 Mar 2018 11:14:50 +0530 Subject: Fix the state(undefined) error in projects page Change-Id: I7dc927aa3288df0b7e0656a2b1271780bfaddfeb Signed-off-by: thuva4 --- testapi/opnfv_testapi/ui/components/projects/projectsController.js | 6 ++++-- 1 file 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; -- cgit 1.2.3-korg