ui: fix preset comparison check
This commit is contained in:
parent
7a88acfa9f
commit
047a5f52e7
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ function WidgetDateRange({
|
|||
}
|
||||
|
||||
React.useEffect(() => {
|
||||
if (presetComparison) {
|
||||
if (presetComparison && presetComparison.length) {
|
||||
const option = DATE_RANGE_COMPARISON_OPTIONS.find((option: any) => option.value === presetComparison[0]);
|
||||
if (option) {
|
||||
// @ts-ignore
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue