We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bef5f3d commit 1577871Copy full SHA for 1577871
src/service-module/make-base-model.ts
@@ -81,7 +81,6 @@ export default function makeBaseModel(options: FeathersVuexOptions) {
81
82
public constructor(data, options: BaseModelInstanceOptions) {
83
// You have to pass at least an empty object to get a tempId.
84
- const originalData = data
85
data = data || {}
86
options = Object.assign({}, defaultOptions, options)
87
@@ -158,7 +157,6 @@ export default function makeBaseModel(options: FeathersVuexOptions) {
158
157
}
159
160
// Add the item to the store
161
- // Make sure originalData wasn't an empty object.
162
if (!options.clone && options.commit !== false && store) {
163
_commit.call(this.constructor, 'addItem', this)
164
0 commit comments