Handle empty data
This commit is contained in:
parent
a3ef6d4eff
commit
736987bfae
@ -24,8 +24,8 @@ export default function Component({ service }) {
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Container service={service}>
|
<Container service={service}>
|
||||||
<Block label="tandoor.users" value={spaceData[0].user_count} />
|
<Block label="tandoor.users" value={spaceData[0]?.user_count} />
|
||||||
<Block label="tandoor.recipes" value={spaceData[0].recipe_count} />
|
<Block label="tandoor.recipes" value={spaceData[0]?.recipe_count} />
|
||||||
<Block label="tandoor.keywords" value={keywordData.count} />
|
<Block label="tandoor.keywords" value={keywordData.count} />
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user