Skip to content

Commit

Permalink
Merge pull request #1 from qinyuhang/dev
Browse files Browse the repository at this point in the history
fix: possible timestampStart is undefined
  • Loading branch information
johnspurlock authored Jun 14, 2021
2 parents 4597689 + c789d29 commit f78d518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function handleHtml(db: Database, url: URL): string | { redirectHref: string } |
const type = 'access/' + accessSummary.stream;
const streamLink = `<a href="${computeHref(url, 'type', type)}">${type}</a>`;
const bundleIdLink = `<a href="${computeHref(url, 'bundleId', accessSummary.bundleId)}">${accessSummary.bundleId}</a>`;
lines.push(`<tr><td>${formatTimestamp(accessSummary.timestampStart)}</td><td>${accessSummary.timestampEnd ? formatTimestamp(accessSummary.timestampEnd) : ''}</td><td>${bundleIdLink}</td><td></td><td>${streamLink}</td></tr>`);
lines.push(`<tr><td>${accessSummary.timestampStart ? formatTimestamp(accessSummary.timestampStart) : ""}</td><td>${accessSummary.timestampEnd ? formatTimestamp(accessSummary.timestampEnd) : ''}</td><td>${bundleIdLink}</td><td></td><td>${streamLink}</td></tr>`);
}
if (domainSummary && showDomains) {
const bundleIdLink = `<a href="${computeHref(url, 'bundleId', domainSummary.bundleId)}">${domainSummary.bundleId}</a>`;
Expand Down

0 comments on commit f78d518

Please sign in to comment.