Explorar el Código

Only keep certain query params when going to next playlist

Peter Holmberg hace 6 años
padre
commit
5adb923ace
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      public/app/features/playlist/playlist_srv.ts

+ 3 - 1
public/app/features/playlist/playlist_srv.ts

@@ -41,7 +41,9 @@ export class PlaylistSrv {
 
 
     const dash = this.dashboards[this.index];
     const dash = this.dashboards[this.index];
     const queryParams = this.$location.search();
     const queryParams = this.$location.search();
-    const filteredParams = _.pickBy(queryParams, value => value !== null);
+    const filteredParams = _.pickBy(queryParams, key => {
+      return key === 'kiosk' || key === 'autofitpanels' || key === 'orgId';
+    });
     const nextDashboardUrl = locationUtil.stripBaseFromUrl(dash.url);
     const nextDashboardUrl = locationUtil.stripBaseFromUrl(dash.url);
 
 
     // this is done inside timeout to make sure digest happens after
     // this is done inside timeout to make sure digest happens after