1
0
mirror of https://github.com/tormachris/cf-workers-status-page.git synced 2025-08-03 19:25:15 +02:00

fix: prevent histogram render error on initial no data state

This commit is contained in:
Adam Janis
2020-11-22 13:12:31 +01:00
parent a3c928bb9c
commit 5a086f5ad0
2 changed files with 6 additions and 4 deletions

View File

@ -39,7 +39,7 @@ export default function MonitorHistogram({ monitorId, kvMonitor }) {
<span className="font-semibold text-sm">
{dayInHistogramLabel}
</span>
{kvMonitor.checks.hasOwnProperty(dayInHistogram) &&
{kvMonitor && kvMonitor.checks.hasOwnProperty(dayInHistogram) &&
Object.keys(kvMonitor.checks[dayInHistogram].res).map((key) => {
return (
<>