Assign default user sort type issue is fixed 31/104931/1
authorjz385p <jegadeesh.babu@att.com>
Mon, 6 Apr 2020 10:01:10 +0000 (15:31 +0530)
committerSunder Tattavarada <statta@research.att.com>
Mon, 6 Apr 2020 16:32:12 +0000 (16:32 +0000)
User default sort type

Issue-ID: PORTAL-862
Change-Id: Iaa82801e21aff4be7639ad014784561b5aa59e20
Signed-off-by: jz385p <jegadeesh.babu@att.com>
(cherry picked from commit 02def0f28e693bc8a241f2b294a5dd9a8969a2b8)

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);