From ba5e3dcfd3f8c499e4fc81478c6eb422eb370957 Mon Sep 17 00:00:00 2001 From: zedongh <248348907@qq.com> Date: Tue, 14 Jun 2022 20:15:13 +0800 Subject: [PATCH] fix: getMinMax with 'GLOBAL_TIME' and 'custom' need pass globalTimefeat (#1269) --- .../src/container/GridGraphLayout/Graph/FullView/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/container/GridGraphLayout/Graph/FullView/index.tsx b/frontend/src/container/GridGraphLayout/Graph/FullView/index.tsx index e4b4bc8183..3111e33e87 100644 --- a/frontend/src/container/GridGraphLayout/Graph/FullView/index.tsx +++ b/frontend/src/container/GridGraphLayout/Graph/FullView/index.tsx @@ -57,7 +57,10 @@ function FullView({ time: timePreferenceType, ): { min: string | number; max: string | number } => { if (time === 'GLOBAL_TIME') { - const minMax = GetMinMax(globalSelectedTime); + const minMax = GetMinMax(globalSelectedTime, [ + minTime / 1000000, + maxTime / 1000000, + ]); return { min: convertToNanoSecondsToSecond(minMax.minTime / 1000), max: convertToNanoSecondsToSecond(minMax.maxTime / 1000),