From 5053ac07da6e639fd4142cb223a3ccac16f87872 Mon Sep 17 00:00:00 2001 From: Cary Date: Thu, 9 May 2024 14:33:36 +0800 Subject: [PATCH] feat: add optional chaining for monitor params --- pages/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index e58236d..297ca75 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -84,8 +84,8 @@ export async function getServerSideProps() { return { id: monitor.id, name: monitor.name, - tooltip: monitor.tooltip, - statusPageLink: monitor.statusPageLink + tooltip: monitor?.tooltip, + statusPageLink: monitor?.statusPageLink } })