Merge "Assign default user sort type issue is fixed" into release-3.2.0
authorSunder Tattavarada <statta@research.att.com>
Mon, 6 Apr 2020 19:15:08 +0000 (19:15 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 6 Apr 2020 19:15:08 +0000 (19:15 +0000)
portal-FE-common/src/app/pages/dashboard-application-catalog/dashboard-application-catalog.component.ts

index ce37339..be4c09e 100644 (file)
@@ -119,16 +119,15 @@ export class DashboardApplicationCatalogComponent implements OnInit {
         } else {
           resJson.index = 3;
 
-        }
-
-        
+        } 
+         this.selectedSortType = this.sortOptions[resJson.index];
+        //console.log(this.selectedSortType);
+      this.getAppCatalogService(data);         
       }
          else {
-                 resJson.index = 0;
+                 this.sortTypeChanged('N');
          }
-         this.selectedSortType = this.sortOptions[resJson.index];
-        //console.log(this.selectedSortType);
-      this.getAppCatalogService(data);
+         
                  
     }, error => {
       console.log('getUserAppsSortTypePreference Error Object' + error.message);