fix: getMinMax with 'GLOBAL_TIME' and 'custom' need pass globalTimefeat (#1269)

This commit is contained in:
zedongh 2022-06-14 20:15:13 +08:00
parent 4f12f8c85c
commit ba5e3dcfd3

View File

@ -57,7 +57,10 @@ function FullView({
time: timePreferenceType, time: timePreferenceType,
): { min: string | number; max: string | number } => { ): { min: string | number; max: string | number } => {
if (time === 'GLOBAL_TIME') { if (time === 'GLOBAL_TIME') {
const minMax = GetMinMax(globalSelectedTime); const minMax = GetMinMax(globalSelectedTime, [
minTime / 1000000,
maxTime / 1000000,
]);
return { return {
min: convertToNanoSecondsToSecond(minMax.minTime / 1000), min: convertToNanoSecondsToSecond(minMax.minTime / 1000),
max: convertToNanoSecondsToSecond(minMax.maxTime / 1000), max: convertToNanoSecondsToSecond(minMax.maxTime / 1000),