Просмотр исходного кода

fix case where timeshift and time override is used

Torkel Ödegaard 7 лет назад
Родитель
Сommit
f026be3790
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      public/app/features/dashboard/utils/panel.ts

+ 1 - 1
public/app/features/dashboard/utils/panel.ts

@@ -140,7 +140,7 @@ export const applyPanelTimeOverrides = (
     }
     }
 
 
     const timeShift = '-' + timeShiftInterpolated;
     const timeShift = '-' + timeShiftInterpolated;
-    newTimeData.timeInfo = ' timeshift ' + timeShift;
+    newTimeData.timeInfo += ' timeshift ' + timeShift;
     newTimeData.timeRange = {
     newTimeData.timeRange = {
       from: dateMath.parseDateMath(timeShift, timeRange.from, false),
       from: dateMath.parseDateMath(timeShift, timeRange.from, false),
       to: dateMath.parseDateMath(timeShift, timeRange.to, true),
       to: dateMath.parseDateMath(timeShift, timeRange.to, true),