Merge pull request #11 from lockerdown/patch-1

feat: add optional chaining for monitor params
This commit is contained in:
lyc8503 authored and GitHub committed 2024-05-09 14:38:54 +08:00
commit 5104b417f6
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
}
})