Skip to content

Commit 70a4cff

Browse files
authored
fix: fragment generation without suffix
1 parent ca72b89 commit 70a4cff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/presets/near-operation-file/src/fragment-resolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function buildFragmentRegistry(
6666
fragmentImports.push({
6767
name: baseVisitor.convertName(name, {
6868
useTypesPrefix: true,
69-
suffix: `_${typeName}_${fragmentSuffix}`,
69+
suffix: `_${typeName}${fragmentSuffix ? `_${fragmentSuffix}` : ''}`,
7070
}),
7171
kind: 'type',
7272
});

0 commit comments

Comments
 (0)