Skip to content

Commit

Permalink
Passes the merged attributes to _create
Browse files Browse the repository at this point in the history
  • Loading branch information
rdiazv committed Jun 27, 2017
1 parent 9c13631 commit 9a1d10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export default class Model {
if (this.collection) {
return this.collection.create(this, { optimistic })
} else {
return this._create(attributes, { optimistic })
return this._create(this.attributes.toJS(), { optimistic })
}
}

Expand Down

0 comments on commit 9a1d10c

Please sign in to comment.