summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerena Feng <feng.xiaowei@zte.com.cn>2018-04-04 07:05:00 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-04-04 07:05:00 +0000
commitf3fb89a2d0f32ad4deeac418aed543630045cea5 (patch)
treec63576177a96f8586fa6199e4209b4c1a018ff96
parent142603a0c3e0a9ab1b9f76a22cd4816dd45633d1 (diff)
parent9a456aca098a8fea414c5ec3ae7968242d6cd968 (diff)
Merge "Fix the state(undefined) error in projects page"
-rw-r--r--testapi/opnfv_testapi/ui/components/projects/projectsController.js6
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;