diff --git a/src/services/chart/core.ts b/src/services/chart/core.ts index 633b8cac8c..d62149c9a9 100644 --- a/src/services/chart/core.ts +++ b/src/services/chart/core.ts @@ -382,8 +382,8 @@ export default abstract class Chart> { const [y, m, d, h] = this.getCurrentDate(); const gt = - span == 'day' ? subtractTimespan(DateUTC([y, m, d]), range - 1, 'days') : - span == 'hour' ? subtractTimespan(DateUTC([y, m, d, h]), range - 1, 'hours') : + span === 'day' ? subtractTimespan(DateUTC([y, m, d]), range - 1, 'days') : + span === 'hour' ? subtractTimespan(DateUTC([y, m, d, h]), range - 1, 'hours') : null as never; // ログ取得