summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthuva4 <tharma.thuva@gmail.com>2018-03-31 11:17:59 +0530
committerthuva4 <tharma.thuva@gmail.com>2018-03-31 11:17:59 +0530
commitb27da61cf4b6ecb2e2a22f0084c27b5778b6c4a8 (patch)
treed1839b1a017f0d6d2b8a4e2ea73857853413747c
parentc20c8286d72ca64751162b1932e0e3f680f0e32f (diff)
Fix the state(undefined) error in pods page
Change-Id: Ia3cc1bdc45ab03e8f09a949e784dde7817dffcac Signed-off-by: thuva4 <tharma.thuva@gmail.com>
-rw-r--r--testapi/opnfv_testapi/ui/components/pods/podsController.js6
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;