From b27da61cf4b6ecb2e2a22f0084c27b5778b6c4a8 Mon Sep 17 00:00:00 2001 From: thuva4 Date: Sat, 31 Mar 2018 11:17:59 +0530 Subject: Fix the state(undefined) error in pods page Change-Id: Ia3cc1bdc45ab03e8f09a949e784dde7817dffcac Signed-off-by: thuva4 --- testapi/opnfv_testapi/ui/components/pods/podsController.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'testapi/opnfv_testapi') 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; -- cgit 1.2.3-korg