diff --git a/packages/graph/content-types/types.ts b/packages/graph/content-types/types.ts index 5dd4cce29..bb37ef9de 100644 --- a/packages/graph/content-types/types.ts +++ b/packages/graph/content-types/types.ts @@ -83,7 +83,7 @@ export class _ContentTypes extends _GraphQueryableCollection { const creator = ContentType(this, "addCopyFromContentTypeHub").using(JSONHeaderParse()); const data = await graphPost(creator, body({ contentTypeId })); - const pendingLocation = data.headers.location || null; + const pendingLocation = data?.headers?.location || null; return { data: data.data, contentType: (this).getById(data.id),