feat: add optional chaining for monitor params

This commit is contained in:
Cary authored and GitHub committed 2024-05-09 14:33:36 +08:00
1 parent e4eb015991
commit 5053ac07da
1 file changed
+2 -2
+2 -2
View File
@@ -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
}
})