fix: fixup 500 error
This commit is contained in:
+4
-4
@@ -89,10 +89,10 @@ export interface Contact {
|
||||
}
|
||||
|
||||
export interface DemoState {
|
||||
APIState: string
|
||||
WebState: string
|
||||
DBState: string
|
||||
DBMemoryState: string
|
||||
api_state: string
|
||||
web_state: string
|
||||
db_state: string
|
||||
dbm_state: string
|
||||
}
|
||||
|
||||
export interface DemoDetails {
|
||||
|
||||
@@ -295,19 +295,19 @@ export function Demos() {
|
||||
<SimpleGrid columns={2} spacing={4}>
|
||||
<Stat>
|
||||
<StatLabel>Backend</StatLabel>
|
||||
<StatNumber fontSize="md">{details.state.APIState || '—'}</StatNumber>
|
||||
<StatNumber fontSize="md">{details.state.api_state || '—'}</StatNumber>
|
||||
</Stat>
|
||||
<Stat>
|
||||
<StatLabel>Frontend</StatLabel>
|
||||
<StatNumber fontSize="md">{details.state.WebState || '—'}</StatNumber>
|
||||
<StatNumber fontSize="md">{details.state.web_state || '—'}</StatNumber>
|
||||
</Stat>
|
||||
<Stat>
|
||||
<StatLabel>PostgreSQL</StatLabel>
|
||||
<StatNumber fontSize="md">{details.state.DBState || '—'}</StatNumber>
|
||||
<StatNumber fontSize="md">{details.state.db_state || '—'}</StatNumber>
|
||||
</Stat>
|
||||
<Stat>
|
||||
<StatLabel>Redis</StatLabel>
|
||||
<StatNumber fontSize="md">{details.state.DBMemoryState || '—'}</StatNumber>
|
||||
<StatNumber fontSize="md">{details.state.dbm_state || '—'}</StatNumber>
|
||||
</Stat>
|
||||
</SimpleGrid>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user