PDF Parser Changes (#3681)
This commit is contained in:
parent
da9f02f963
commit
5738014a88
6 changed files with 42 additions and 5 deletions
|
|
@ -40,7 +40,7 @@ export class TimeAgoPipe implements PipeTransform, OnDestroy {
|
|||
private translocoService: TranslocoService) {}
|
||||
|
||||
transform(value: string | Date | null) {
|
||||
if (value === '' || value === null || value === undefined || (value instanceof String && value.split('T')[0] === '0001-01-01')) {
|
||||
if (value === '' || value === null || value === undefined || (typeof value === 'string' && value.split('T')[0] === '0001-01-01')) {
|
||||
return this.translocoService.translate('time-ago-pipe.never');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue