ui: fix comparison reset
This commit is contained in:
parent
80229a0214
commit
4169ab87c6
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ function WidgetDateRange({
|
||||||
};
|
};
|
||||||
|
|
||||||
const onChangeComparison = (period: any) => {
|
const onChangeComparison = (period: any) => {
|
||||||
if (compPeriod) {
|
if (compPeriod && period) {
|
||||||
if (compPeriod.start === period.start && compPeriod.end === period.end) {
|
if (compPeriod.start === period.start && compPeriod.end === period.end) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue