Skip to content

Can't call method of an object that is part of the observable array #2934

Answered by mweststrate
BornaGajic asked this question in Q&A
Discussion options

You must be logged in to vote

I can't spot an obvious problem with this, so for any help a reproduction is needed. The most likely problem is that you have some plain json objects in your myTasks collection, that are not actual Task class instances, so they will have the id etc fields, but not a changeData method. I'd check any code that fills the collection.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BornaGajic
Comment options

Answer selected by BornaGajic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants