Skip to content

Commit e8c3488

Browse files
committed
Fetch method update
1 parent a1294c2 commit e8c3488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/entity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export const fetch = (http, type) => {
186186
response.data[type]['content_type'] = response.data['content_type']
187187
response.data[type]['schema'] = response.data['schema']
188188
}
189-
return Object.assign(this, cloneDeep(response.data[type]))
189+
return new this.constructor(http, parseData(response, this.stackHeaders))
190190
} else {
191191
throw error(response)
192192
}

0 commit comments

Comments
 (0)