We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e64893 commit 99f7509Copy full SHA for 99f7509
1 file changed
lib/stack/contentType/index.js
@@ -151,7 +151,7 @@ export function ContentType (http, data = {}) {
151
}
152
153
export function ContentTypeCollection (http, data) {
154
- const obj = cloneDeep(data.content_types)
+ const obj = cloneDeep(data.content_types) || []
155
const contentTypeCollection = obj.map((userdata) => {
156
return new ContentType(http, { content_type: userdata, stackHeaders: data.stackHeaders })
157
})
0 commit comments