We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pipe crashes when value is missing
ERROR SyntaxError: Wrong parameter in TimeagoPipe. Expected a valid date, received: null
This will happen while you wait for content to load
{{ item?.createdAt | timeago }}
This will most likely happen during testing, when you don't mock whole object.
Display nothing
Add null check
{{ '' | timeago}} {{ undefined | timeago}} {{ null | timeago}}
ngx-timeago version: ^1.0.4 Angular version: 10.0.12
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current behavior
Pipe crashes when value is missing
This will happen while you wait for content to load
This will most likely happen during testing, when you don't mock whole object.
Expected behavior
Display nothing
How do you think that we should fix this?
Add null check
Minimal reproduction of the problem with instructions
Environment
The text was updated successfully, but these errors were encountered: