Skip to content

Commit 4b12100

Browse files
committed
chore: update
1 parent cd32a26 commit 4b12100

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-
key = value.replace(/[^_a-zA-Z0-9]/g, '_').replace(/(^[0-9])(.*)/g, 'a_$1$2');
398+
key = value?.replace(/[^_a-zA-Z0-9]/g, '_')?.replace(/(^[0-9])(.*)/g, 'a_$1$2');
399399
}
400400
result[key] = { value };
401401
return result;

0 commit comments

Comments
 (0)