Merge pull request #4615 from EdisonHarada/master

Fix currentYear is not defined
pull/4649/head
Tuğçe Küçükoğlu 2023-10-17 10:45:03 +03:00 committed by GitHub
commit 3feaf726bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -675,9 +675,9 @@ export default {
let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue; let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
if (this.isMultipleSelection()) { if (this.isMultipleSelection()) {
return value.some((currentValue) => currentValue.getMonth() === month && currentValue.getFullYear() === currentYear); return value.some((currentValue) => currentValue.getMonth() === month && currentValue.getFullYear() === this.currentYear);
} else { } else {
return value.getMonth() === month && value.getFullYear() === currentYear; return value.getMonth() === month && value.getFullYear() === this.currentYear;
} }
} }