Skip to content

Commit f86b0fb

Browse files
Robson TenórioRobson Tenório
Robson Tenório
authored and
Robson Tenório
committed
2 parents bee3d2e + 72d71ca commit f86b0fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export default class Model extends StaticModel {
266266

267267
return this
268268
.find(identifier)
269-
.then(response => response.data || response)
269+
.then(response => new this.constructor(response.data || response))
270270
}
271271

272272
get() {

0 commit comments

Comments
 (0)