Skip to content

Commit 99f7509

Browse files
committed
ContentType test case
1 parent 2e64893 commit 99f7509

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/stack/contentType/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export function ContentType (http, data = {}) {
151151
}
152152

153153
export function ContentTypeCollection (http, data) {
154-
const obj = cloneDeep(data.content_types)
154+
const obj = cloneDeep(data.content_types) || []
155155
const contentTypeCollection = obj.map((userdata) => {
156156
return new ContentType(http, { content_type: userdata, stackHeaders: data.stackHeaders })
157157
})

0 commit comments

Comments
 (0)