ui: fix comparison reset

This commit is contained in:
nick-delirium 2025-03-14 13:18:56 +01:00
parent 80229a0214
commit 4169ab87c6
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0

View file

@ -35,7 +35,7 @@ function WidgetDateRange({
};
const onChangeComparison = (period: any) => {
if (compPeriod) {
if (compPeriod && period) {
if (compPeriod.start === period.start && compPeriod.end === period.end) {
return;
}