From 1ec935b987a9a36697990c9589a126431cb078cd Mon Sep 17 00:00:00 2001 From: Spikatrix <12792882+Spikatrix@users.noreply.github.com> Date: Mon, 19 Jun 2023 10:38:57 +0000 Subject: [PATCH] Compare raw timerange values --- public/app/core/components/TimePicker/TimePickerWithHistory.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/core/components/TimePicker/TimePickerWithHistory.tsx b/public/app/core/components/TimePicker/TimePickerWithHistory.tsx index 178bda34d01b..e41773dae49c 100644 --- a/public/app/core/components/TimePicker/TimePickerWithHistory.tsx +++ b/public/app/core/components/TimePicker/TimePickerWithHistory.tsx @@ -65,7 +65,7 @@ export const Picker: FC = ({ rawValues, onSaveToStore, pickerProps }) ); } - } else if (fnGlobalTimeRange && !isEqual(fnGlobalTimeRange, pickerProps.value)) { + } else if (fnGlobalTimeRange && !isEqual(fnGlobalTimeRange.raw, pickerProps.value.raw)) { /* If fnGlobalTimeRange exists in the initial render, set the time as that */ pickerProps.onChange(fnGlobalTimeRange); }