Prechádzať zdrojové kódy

Minor bug fix for rememeber refresh interval after zooming two or more times, Fixes #1408

Torkel Ödegaard 11 rokov pred
rodič
commit
6b6b97c8d8
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/app/features/dashboard/timeSrv.js

+ 1 - 1
src/app/features/dashboard/timeSrv.js

@@ -94,7 +94,7 @@ define([
 
       // disable refresh if we have an absolute time
       if (time.to !== 'now') {
-        this.old_refresh = this.dashboard.refresh;
+        this.old_refresh = this.dashboard.refresh || this.old_refresh;
         this.set_interval(false);
       }
       else if (this.old_refresh && this.old_refresh !== this.dashboard.refresh) {