Skip to content

Commit 7de794e

Browse files
author
Dennis Mwea
committed
Check whether day is an object first before returning the date
1 parent de0fc75 commit 7de794e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/PickerDay.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ export default {
3838
allowedToShowView: Function,
3939
dayCellContent: {
4040
type: Function,
41-
default: day => day.date
41+
default: day => {
42+
if (day && Object.keys(day).length) {
43+
return day.date
44+
}
45+
}
4246
},
4347
disabledDates: Object,
4448
highlighted: Object,

0 commit comments

Comments
 (0)