Skip to content

Commit 2829a83

Browse files
exacsCopilot
andauthored
Update packages/optimizely-cms-sdk/src/graph/index.ts
Co-authored-by: Copilot <[email protected]>
1 parent 339f7d6 commit 2829a83

File tree

1 file changed

+1
-1
lines changed
  • packages/optimizely-cms-sdk/src/graph

1 file changed

+1
-1
lines changed

packages/optimizely-cms-sdk/src/graph/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function removeTypePrefix(obj: any): any {
153153
if (typeof obj === 'object' && obj !== null) {
154154
const obj2: Record<string, any> = {};
155155
if ('__typename' in obj) {
156-
// Do something special with the object
156+
// Object has a GraphQL type, check for and remove aliased field prefixes
157157
const prefix = obj.__typename + '__';
158158

159159
// Copy all properties, remove the typename from prefix

0 commit comments

Comments
 (0)