feat: add optional chaining for monitor params

pull/11/head
Cary 2024-05-09 14:33:36 +08:00 committed by GitHub
parent e4eb015991
commit 5053ac07da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

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
}
})