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.
2 parents cd257ab + daa9a1e commit 9601217Copy full SHA for 9601217
src/service-module/make-base-model.ts
@@ -421,7 +421,7 @@ export default function makeBaseModel(options: FeathersVuexOptions) {
421
const { idField, _dispatch } = this.constructor as typeof BaseModel
422
const id = getId(this, idField)
423
424
- if (!id) {
+ if (id !== 0 && !id) {
425
const error = new Error(
426
`Missing ${idField} property. You must create the data before you can update with this data`
427
)
0 commit comments