Skip to content

Commit

Permalink
fix: parsing of encapsulated cc
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed May 17, 2024
1 parent 6d1eeb9 commit 3255db4
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/components/custom/CCTreeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,17 @@ export default {
})
}
} else if (key === 'encapsulated') {
children.push({
id: `${root}.encapsulated`,
name: entry.encapsulated.tags.join(', '),
children: entry.encapsulated?.map((e, i) =>
this.parseEntry(e, `${root}.encapsulated[${i}]`),
),
})
for (let i = 0; i < entry.encapsulated.length; i++) {
const encapsulated = entry.encapsulated[i]
children.push({
id: `${root}.encapsulated[${i}]`,
name: encapsulated.tags.join(', '),
children: this.parseEntry(
encapsulated,
`${root}.encapsulated[${i}]`,
),
})
}
}
}
return items
Expand Down

0 comments on commit 3255db4

Please sign in to comment.