Skip to content
New issue

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

do not render a date when date fields empty #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tmfrnz
Copy link

@tmfrnz tmfrnz commented Aug 3, 2023

This is to fix an issue with rendering unspecified "auxiliary dates", which are dates that belong to other columns

Without making sure that a date is present, the app currently outputs 1/01/1970, 12:00:00 pm which is the result of new Date(null), as can be seen here for example for the record 810 (https://tsunami.gns.cri.nz/#!/db/r810)

unnamed

The fix will check for the presence of both min and max dates and if not present outputs an mdash (—) as used elsewhere for missing data (and also removes the obsolete (and unspecified) certainty value. The result can be seen here:

unnamed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants