Skip to content

Commit 146bb02

Browse files
committed
chore: update
1 parent b02eec0 commit 146bb02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fieldsConverter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ export function enumToGraphQL(
395395
} else if (value === '') {
396396
key = 'EMPTY_STRING';
397397
} else {
398-
if (typeof value.toString === 'function') {
398+
if (typeof value?.replace === 'function') {
399399
key = value?.replace(/[^_a-zA-Z0-9]/g, '_')?.replace(/(^[0-9])(.*)/g, 'a_$1$2');
400400
} else {
401401
key = value;

0 commit comments

Comments
 (0)