Skip to content

Commit

Permalink
fix(abc:st): correct default value of date type
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Aug 5, 2024
1 parent 772ecb4 commit 23be023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/abc/st/st-data-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export class STDataSource {
text = this.currencySrv.format(value, col.currency?.format);
break;
case 'date':
text = value === col.default ? col.default : this.datePipe.transform(value, col.dateFormat);
text = value == null || value === col.default ? col.default : this.datePipe.transform(value, col.dateFormat);
break;
case 'yn':
text = this.ynPipe.transform(value === col.yn!.truth, col.yn!.yes!, col.yn!.no!, col.yn!.mode!, false);
Expand Down

0 comments on commit 23be023

Please sign in to comment.