mirror of
https://github.com/gethomepage/homepage.git
synced 2025-08-11 09:13:38 -04:00
Enhancement: support Tandoor v2 api structure (#5646)
This commit is contained in:
parent
5870111d11
commit
98248903c6
@ -23,10 +23,13 @@ export default function Component({ service }) {
|
|||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const space = spaceData.results ? spaceData.results[0] : spaceData[0];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container service={service}>
|
<Container service={service}>
|
||||||
<Block label="tandoor.users" value={spaceData[0]?.user_count} />
|
<Block label="tandoor.users" value={space?.user_count} />
|
||||||
<Block label="tandoor.recipes" value={spaceData[0]?.recipe_count} />
|
<Block label="tandoor.recipes" value={space?.recipe_count} />
|
||||||
<Block label="tandoor.keywords" value={keywordData.count} />
|
<Block label="tandoor.keywords" value={keywordData.count} />
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user