Skip to content

Commit 2020c89

Browse files
committed
update logic
1 parent 723a38e commit 2020c89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

composition-js/src/compose.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,14 @@ function validateSubgraphsAndMerge(subgraphs: Subgraphs, options: CompositionOpt
186186
toMerge = subgraphs;
187187
}
188188

189-
if (!options.pipelineOptions?.runValidateSubgraphs !== false) {
189+
if (options.pipelineOptions?.runValidateSubgraphs !== false) {
190190
const validationErrors = toMerge.validate();
191191
if (validationErrors) {
192192
return { errors: validationErrors };
193193
}
194194
}
195195

196-
if (!options.pipelineOptions?.runComposition !== false) {
196+
if (options.pipelineOptions?.runComposition !== false) {
197197
return mergeSubgraphs(toMerge);
198198
}
199199
return { subgraphs: toMerge };

0 commit comments

Comments
 (0)