Merge pull request #43 from tianwen42/patch-1

Fix statusPageLink compilation error
pull/47/head
lyc8503 2024-06-30 16:09:00 +08:00 committed by GitHub
commit d11c482013
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,8 @@ export default function Home({
}: {
state: string
monitors: MonitorTarget[]
tooltip?: string
statusPageLink?: string
}) {
let state;
if (stateStr !== undefined) {
@ -103,7 +105,9 @@ export async function getServerSideProps() {
return {
id: monitor.id,
name: monitor.name,
// @ts-ignore
tooltip: monitor?.tooltip,
// @ts-ignore
statusPageLink: monitor?.statusPageLink
}
})