Skip to content

Commit a9ea108

Browse files
author
Jens van Hellemondt
committed
🐛 fix EsLint errors
1 parent 2d2a225 commit a9ea108

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

generator/templates/Default/src/components/crud/fields/KDateField.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,8 @@ export default {
7878
},
7979
},
8080
created() {
81-
if (this.type === 'month') {
82-
return this.date = this.value || dayjs().format('MMM YYYY');
83-
}
84-
this.date = this.value || dayjs().format('YYYY-MM-DD');
81+
const format = this.type === 'month' ? 'MMM YYYY' : 'YYYY-MM-DD';
82+
this.date = this.value || dayjs().format(format);
8583
},
8684
computed: {
8785
formattedDate() {

0 commit comments

Comments
 (0)