Skip to content

Commit c9113aa

Browse files
committed
duplication bug fix
1 parent 3f83163 commit c9113aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/plugins/other/visitor-plugin-common/src/base-documents-visitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ export class BaseDocumentsVisitor<
378378
// When extractAllFieldsToTypes creates a root type with the same name as the operation result,
379379
// we only need the extracted type and can skip the alias to avoid duplicates
380380
const shouldSkipOperationResult =
381-
this._parsedConfig.extractAllFieldsToTypes && operationResultName === selectionSetObjects.mergedTypeString;
381+
this._parsedConfig.extractAllFieldsToTypesCompact && operationResultName === selectionSetObjects.mergedTypeString;
382382

383383
const operationResult = shouldSkipOperationResult
384384
? ''

0 commit comments

Comments
 (0)