Skip to content

Commit

Permalink
fix(desinger): Remove Outputs if includeRootOutputs is not set (#4333)
Browse files Browse the repository at this point in the history
remove outputs if not included
  • Loading branch information
Eric-B-Wu authored Mar 8, 2024
1 parent 1a366aa commit 2ae577d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/logic-apps-shared/src/parsers/lib/manifest/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ export class ManifestParser {
OutputsProcessor.convertSchemaPropertyToOutputParameter(item, SwaggerConstants.OutputSource.Outputs, 'outputs')
);

return map(outputParameters, SwaggerConstants.OutputMapKey);
const filteredOutputParameters = !this._operationManifest.properties.includeRootOutputs
? outputParameters.filter((parameter) => parameter.key !== 'outputs.$')
: outputParameters;

return map(filteredOutputParameters, SwaggerConstants.OutputMapKey);
}

/**
Expand Down

0 comments on commit 2ae577d

Please sign in to comment.