Pushing data to tree results in error
ben-roth opened this issue · 4 comments
ben-roth commented
A simple push of data to my tree results in the following error. Have no idea why, any thoughts or ideas???
My push code
app.data.push({title:"New"})
the error i get:
[Vue warn]: Error in render: "TypeError: Cannot read property '0' of undefined"
found in
---> <TreeNode> at DraggableTreeNode.vue... (1 recursive calls)
<Tree> at DraggableTree.vue
<Root>
phphe commented
what is the error line
ben-roth commented
1138
return [t._t("default", null, {
scopedSlots: t._u([{ key: "default", fn: function fn(e) { return [t._t("default", null, { data: e.data, store: t.store, vm: e.vm })]; } }
phphe commented
what's your template? I suspect that your template has a problem.
ben-roth commented
ahh, thank you so much, there was an issue with my template. Thank you!