Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankbrgowda committed Nov 26, 2024
1 parent 55a31de commit 471f938
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export const FeatureDetailsNavigation = observer(
}) {
const { feature, model } = props
const { children, parent } = feature
const childrenSnapshot = []
const childFeatures = []
if (children) {
for (const [, child] of children) {
childrenSnapshot.push(child)
childFeatures.push(child)
}
}

Expand All @@ -35,10 +35,10 @@ export const FeatureDetailsNavigation = observer(
</Button>
</div>
)}
{childrenSnapshot.length > 0 && (
{childFeatures.length > 0 && (
<div>
<Typography variant="h5">Children: </Typography>
{childrenSnapshot.map((child) => (
{childFeatures.map((child) => (
<div key={child._id} style={{ marginBottom: 5 }}>
<Button
variant="contained"
Expand Down

0 comments on commit 471f938

Please sign in to comment.