-
Couldn't load subscription status.
- Fork 52
Open
Description
Describe the bug
when id type is string, it shows NaN after persist
Steps to reproduce the bug
i have this model
import { Model as ORMModel } from '@vuex-orm/core'
import Model from './Model'
export default class Make extends ORMModel {
static entity = 'makes'
static eagerLoad = ['models']
static fields() {
return {
id: this.string(),
name: this.string(null).nullable(),
active: this.boolean(true),
models: this.hasMany(Model, 'makeId')
}
}
}
I use fireorm as database and everytime the model transform and inserted in vuex-orm store. it shows NaN. see console.log output:
Expected behaviour
Should allow id as string type and save correct id value.
Versions
- Vuex ORM: 0.36.3
- I am using Nuxt: 2.14.12
Dotrox
Metadata
Metadata
Assignees
Labels
No labels
