Merge pull request #11 from lockerdown/patch-1

feat: add optional chaining for monitor params
pull/36/head
lyc8503 2024-05-09 14:38:54 +08:00 committed by GitHub
commit 5104b417f6
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
}
})