diff --git a/bin/web/src/lib/components/ManifestCard.svelte b/bin/web/src/lib/components/ManifestCard.svelte index 99c7b81..93b58ef 100644 --- a/bin/web/src/lib/components/ManifestCard.svelte +++ b/bin/web/src/lib/components/ManifestCard.svelte @@ -54,7 +54,7 @@
Start: {date_formatter.format(entry.start_time)} - Last Message: {date_formatter.format(entry.last_message_time)} + Last Message: {entry.last_message_time && date_formatter.format(entry.last_message_time) || "N/A"}
diff --git a/bin/web/src/lib/components/ManifestTableRow.svelte b/bin/web/src/lib/components/ManifestTableRow.svelte index b60332f..6ffd553 100644 --- a/bin/web/src/lib/components/ManifestTableRow.svelte +++ b/bin/web/src/lib/components/ManifestTableRow.svelte @@ -32,7 +32,7 @@ {entry.name} {date_formatter.format(entry.start_time)} - {date_formatter.format(entry.last_message_time)} + {entry.last_message_time && date_formatter.format(entry.last_message_time) || "N/A"} {entry.get_readable_qmdl_size()} diff --git a/bin/web/src/lib/manifest.svelte.ts b/bin/web/src/lib/manifest.svelte.ts index eb8192a..6fb9da1 100644 --- a/bin/web/src/lib/manifest.svelte.ts +++ b/bin/web/src/lib/manifest.svelte.ts @@ -64,7 +64,7 @@ export class ManifestEntry { this.qmdl_size_bytes = json.qmdl_size_bytes; this.analysis_size_bytes = json.analysis_size_bytes; this.start_time = new Date(json.start_time); - if (json.last_message_time !== undefined) { + if (json.last_message_time) { this.last_message_time = new Date(json.last_message_time); } }