Skip to content

Commit

Permalink
fix(frontend): enable child creation even if no children in entry (#406)
Browse files Browse the repository at this point in the history
Co-authored-by: alice.juan <alice.juan@student-cs.fr>
  • Loading branch information
Piv94165 and alice.juan authored Feb 14, 2024
1 parent 7bfcb71 commit 3562e7d
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,11 @@ const ListEntryChildren = ({ url, urlPrefix, setUpdateNodeChildren }) => {
);
}

if (!relations.length) {
return (
<Box>
<Typography sx={{ ml: 4 }} variant="h5">
No children
</Typography>
</Box>
);
}

return (
<Box>
<Stack direction="row" alignItems="center">
<Typography sx={{ ml: 4 }} variant="h5">
Children
{!relations.length ? "No children" : "Children"}
</Typography>
{!incomingData && (
<Box sx={{ textAlign: "left", m: 3 }}>
Expand Down

0 comments on commit 3562e7d

Please sign in to comment.