Skip to content

Commit 77d46b8

Browse files
Merge pull request #197 from NickBolles/master
Use merge for toJson object
2 parents 87a25dc + d882a9f commit 77d46b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/service-module/model.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import fastCopy from 'fast-copy'
2+
import _merge from 'lodash.merge'
23

34
const defaults = {
45
idField: 'id',
@@ -170,7 +171,7 @@ export default function (options) {
170171
_remove () {}
171172

172173
toJSON () {
173-
return fastCopy(this)
174+
return _merge({}, this)
174175
}
175176
}
176177

0 commit comments

Comments
 (0)