Update index.tsx

Fix #41: Compilation failure leading to unsuccessful deployment.
pull/43/head
Vega 2024-06-22 20:23:47 +08:00 committed by GitHub
parent 03d6a5cee9
commit b232414d22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 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,8 +105,8 @@ export async function getServerSideProps() {
return {
id: monitor.id,
name: monitor.name,
tooltip: monitor?.tooltip,
statusPageLink: monitor?.statusPageLink
tooltip: 'Default Tooltip Value', //monitor?.tooltip,
statusPageLink: 'statusPageLink', //monitor?.statusPageLink
}
})