From 3245b046cd7087e28b61feb402811862cb5c87e5 Mon Sep 17 00:00:00 2001 From: mshanemc Date: Thu, 8 Aug 2024 20:42:16 -0500 Subject: [PATCH] feat: show all decomposed labels in FileResponses --- src/convert/streams.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/convert/streams.ts b/src/convert/streams.ts index 8fe41c92d..4b0a03bec 100644 --- a/src/convert/streams.ts +++ b/src/convert/streams.ts @@ -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)) {