Skip to content

Commit 633ef0a

Browse files
committed
Fix references in switch-case conditional expressions in oneof field resolver
1 parent 2ddf910 commit 633ef0a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/protoc-gen-nexus/src/dslgen/printers/fieldResolvers/oneoUnionfFieldResolver.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ function createOneofUnionFieldResolverMapStmtsForGoogleProtobuf(
8080
createFullNameExpr(type.parentProtoTypeFullName),
8181
`${pascalCase(oneofName)}Case`
8282
),
83-
constantCase(f.name, {
84-
splitRegexp: /([a-z])([A-Z0-9])/g,
85-
})
83+
constantCase(f.proto.name)
8684
),
8785
[
8886
ts.factory.createBlock(

0 commit comments

Comments
 (0)