mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 20:19:13 +08:00
fix: getMinMax with 'GLOBAL_TIME' and 'custom' need pass globalTimefeat (#1269)
This commit is contained in:
parent
4f12f8c85c
commit
ba5e3dcfd3
@ -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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user