Skip to content

Commit

Permalink
feat: show all decomposed labels in FileResponses
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Aug 9, 2024
1 parent 92461b8 commit 3245b04
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/convert/streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,13 @@ export class StandardWriter extends ComponentWriter {
}

// if there are children, resolve each file. o/w just pick one of the files to resolve
if (toResolve.size === 0 || chunk.component.type.children) {
// "resolve" means "make these show up in the FileResponses"
if (
toResolve.size === 0 ||
chunk.component.type.children !== undefined ||
// make each decomposed label show up in the fileResponses
chunk.component.type.strategies?.transformer === 'decomposedLabels'
) {
// This is a workaround for a server side ListViews bug where
// duplicate components are sent. W-9614275
if (toResolve.has(info.output)) {
Expand Down

0 comments on commit 3245b04

Please sign in to comment.