Skip to content

Commit

Permalink
Fix invalid date in table layout #6230
Browse files Browse the repository at this point in the history
  • Loading branch information
afbora committed Feb 1, 2024
1 parent bd06e83 commit 746c2ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion panel/src/components/Forms/Previews/DateFieldPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ export default {
return this.$library.dayjs(this.value);
},
text() {
return this.parsed?.format(this.format);
// don't parse and format if custom date value defined
return this.column.value?.length > 0 ?
this.value :
this.parsed?.format(this.format);
},
time() {
return this.column.time ?? this.field.time;
Expand Down

0 comments on commit 746c2ff

Please sign in to comment.