Skip to content

Commit

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

0 comments on commit 6d1eeb9

Please sign in to comment.