Commit 75c9806430d21f5779431477fb5d830e8dc45abc
1 parent
1c722892
Don't use undefined
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/date-picker/picker.vue
... | ... | @@ -651,7 +651,7 @@ |
651 | 651 | this.internalValue = Array.isArray(dates) ? dates : [dates]; |
652 | 652 | } |
653 | 653 | |
654 | - this.focusedDate = this.internalValue[0]; | |
654 | + if (this.internalValue[0]) this.focusedDate = this.internalValue[0]; | |
655 | 655 | this.focusedTime = { |
656 | 656 | ...this.focusedTime, |
657 | 657 | time: this.internalValue.map(extractTime) | ... | ... |