Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -54,7 +54,7 @@ const getIntervalTimeOptions = computed(() => { |
54 | 54 | }) |
55 | 55 | |
56 | 56 | const handleTimePerionChange = (value: number[]) => { |
57 | - const [startTs, endTs] = value | |
57 | + const [startTs, endTs] = value || [] | |
58 | 58 | emit('update:value', { ...props.value, startTs, endTs, interval: null }) |
59 | 59 | emit('change', { ...props.value || {}, startTs, endTs, interval: null }) |
60 | 60 | } | ... | ... |