Browse Source

fix(): fixed issue with syncing refresh interval to url

Torkel Ödegaard 9 years ago
parent
commit
ac0d09c419
1 changed files with 5 additions and 3 deletions
  1. 5 3
      public/app/features/dashboard/time_srv.ts

+ 5 - 3
public/app/features/dashboard/time_srv.ts

@@ -116,9 +116,11 @@ class TimeSrv {
     }
     }
 
 
     // update url
     // update url
-    var params = this.$location.search();
-    params.refresh = interval;
-    this.$location.search(params);
+    if (interval) {
+      var params = this.$location.search();
+      params.refresh = interval;
+      this.$location.search(params);
+    }
   }
   }
 
 
   refreshDashboard() {
   refreshDashboard() {