vuex-orm-localforage icon indicating copy to clipboard operation
vuex-orm-localforage copied to clipboard

Cannot convert undefined or null to object

Open mcorning opened this issue 4 years ago • 1 comments

Subject is a common error when you forget to wrap your payload in a data:{} object.

looks like you might need to fix the sample Todo.$create({ title: this.todo }) to read: Todo.$create({ data:{title: this.todo } }) yeah?

mcorning avatar Aug 20 '20 23:08 mcorning

I'm also running into this issue when using .$get(id) when there is no item with that key stored in indexedDB. This is a pretty strange error, I was expecting it returns null or something if there is no stored item, but it seems to break.

Colorfulstan avatar Dec 09 '20 14:12 Colorfulstan