pull/6381/head
tugcekucukoglu 2024-09-11 10:48:04 +03:00
parent b4cfcbb320
commit 167b6b2ab0
1 changed files with 1 additions and 1 deletions

View File

@ -728,7 +728,7 @@ export default {
return this.modelValue.some((currentValue) => currentValue.getMonth() === month && currentValue.getFullYear() === this.currentYear); return this.modelValue.some((currentValue) => currentValue.getMonth() === month && currentValue.getFullYear() === this.currentYear);
} else if (this.isRangeSelection()) { } else if (this.isRangeSelection()) {
if (!this.modelValue[1]) { if (!this.modelValue[1]) {
return this.modelValue[0].getFullYear() === this.currentYear && this.modelValue[0].getMonth() === month; return this.modelValue[0]?.getFullYear() === this.currentYear && this.modelValue[0]?.getMonth() === month;
} else { } else {
const currentDate = new Date(this.currentYear, month, 1); const currentDate = new Date(this.currentYear, month, 1);
const startDate = new Date(this.modelValue[0].getFullYear(), this.modelValue[0].getMonth(), 1); const startDate = new Date(this.modelValue[0].getFullYear(), this.modelValue[0].getMonth(), 1);