File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/optimizely-cms-sdk/src/graph Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -215,9 +215,7 @@ export function createFragment(
215215
216216 // Built‑in CMS baseTypes ("_image", "_video", "_media" etc.)
217217 if ( isBaseType ( contentTypeName ) ) {
218- const { fields : f , extraFragments : e } = buildBaseTypeFragments (
219- contentTypeName as MediaStringTypes
220- ) ;
218+ const { fields : f , extraFragments : e } = buildBaseTypeFragments ( ) ;
221219 fields . push ( ...f ) ;
222220 extraFragments . push ( ...e ) ;
223221 } else {
@@ -244,7 +242,7 @@ export function createFragment(
244242 }
245243
246244 // Add fragments for the base type of the user-defined content type
247- const baseFragments = buildBaseTypeFragments ( ct . baseType ) ;
245+ const baseFragments = buildBaseTypeFragments ( ) ;
248246 extraFragments . unshift ( ...baseFragments . extraFragments ) ; // maintain order
249247 fields . push ( ...baseFragments . fields ) ;
250248
You can’t perform that action at this time.
0 commit comments