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 a667d56 + 0e85361 commit aefaba1Copy full SHA for aefaba1
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