Browse Source

Fix initial sort on dashboards manage page (#25918)

Fixing the default sort to be "My Dashboards".
Shruthi 3 years ago
parent
commit
f7ee206c66
1 changed files with 2 additions and 1 deletions
  1. 2 1
      static/app/views/dashboardsV2/manage/index.tsx

+ 2 - 1
static/app/views/dashboardsV2/manage/index.tsx

@@ -52,7 +52,8 @@ class ManageDashboards extends AsyncView<Props, State> {
         `/organizations/${organization.slug}/dashboards/`,
         {
           query: {
-            ...pick(location.query, ['cursor', 'query', 'sort']),
+            ...pick(location.query, ['cursor', 'query']),
+            sort: this.getActiveSort().value,
             per_page: '9',
           },
         },