summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/ui/components
diff options
context:
space:
mode:
Diffstat (limited to 'testapi/opnfv_testapi/ui/components')
-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;