Skip to content

Commit 854a9d4

Browse files
committed
Remove unused argument
1 parent 9f06206 commit 854a9d4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)