We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1294c2 commit e8c3488Copy full SHA for e8c3488
lib/entity.js
@@ -186,7 +186,7 @@ export const fetch = (http, type) => {
186
response.data[type]['content_type'] = response.data['content_type']
187
response.data[type]['schema'] = response.data['schema']
188
}
189
- return Object.assign(this, cloneDeep(response.data[type]))
+ return new this.constructor(http, parseData(response, this.stackHeaders))
190
} else {
191
throw error(response)
192
0 commit comments