Skip to content

Commit

Permalink
fix: return fill insertOrUpdate data
Browse files Browse the repository at this point in the history
  • Loading branch information
kkyouhei committed Nov 1, 2018
1 parent 7a3bf25 commit a98d876
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/model/Model.ts
Expand Up @@ -669,7 +669,8 @@ export default class Model {

return this.$dispatch('insertOrUpdate', { data: record })
.then(record => {
return record[this.$self().entity][0]
this.$fill(record[this.$self().entity][0])
return this
})
.catch(err => {
throw err
Expand Down

0 comments on commit a98d876

Please sign in to comment.