Skip to content

Commit

Permalink
feat(date): do not convert "(empty)"
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximBalaganskiy committed Jul 20, 2020
1 parent 51c9945 commit 240d8d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/converters/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export class DateValueConverter {
toView(value: string | Date | moment.Moment, format: string): string {
if (!value) {
return "";
} else if (value === "(empty)") {
return value;
}
const m = moment(value);
if (m.isAfter("9999-12-31")) {
Expand Down

0 comments on commit 240d8d9

Please sign in to comment.