Commit f83040cd authored by Webb, Jake's avatar Webb, Jake
Browse files

fixed an issue where stats weren't showing up at all

parent 516a7153
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ import {
  addSeconds,
  differenceInSeconds,
  isBefore,
  isEqual,
  subSeconds,
} from "date-fns";
import { CoolingCDU } from "../../models/CoolingCDU.model";
@@ -148,7 +149,9 @@ export const useReplayScheduler = ({
        params: {
          start: isBefore(startTime, end)
            ? startTime
            : subSeconds(end, 1).toISOString(),
            : isEqual(startTime, end)
              ? subSeconds(end, 1).toISOString()
              : undefined,
          end: isBefore(currentEndTime, end) ? currentEndTime : end,
          granularity: isEnd ? undefined : playbackInterval,
          resolution: isEnd ? 1 : undefined,