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 380d588 + aefaba1 commit 209b5bbCopy full SHA for 209b5bb
src/components/TreeVIII.vue
@@ -253,7 +253,7 @@ export default {
253
this.dialog = false
254
if (this.currentNode.parent && this.currentNode.parent.children.length > 0) {
255
this.currentNode.parent.children.filter((item, i) => {
256
- if (item.data && item.data.value === this.currentNode.data.value) {
+ if (this.currentNode && item.data && item.data.value === this.currentNode.data.value) {
257
this.currentNode.parent.children.splice(i, 1)
258
if (this.currentNode.parent.children.length === 0) {
259
delete this.currentNode.parent.children
0 commit comments