Merge pull request #11 from lockerdown/patch-1
feat: add optional chaining for monitor paramspull/36/head
commit
5104b417f6
|
|
@ -84,8 +84,8 @@ export async function getServerSideProps() {
|
||||||
return {
|
return {
|
||||||
id: monitor.id,
|
id: monitor.id,
|
||||||
name: monitor.name,
|
name: monitor.name,
|
||||||
tooltip: monitor.tooltip,
|
tooltip: monitor?.tooltip,
|
||||||
statusPageLink: monitor.statusPageLink
|
statusPageLink: monitor?.statusPageLink
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue