Skip to content

Commit e31b60e

Browse files
Dean OhashiDean Ohashi
authored andcommitted
commit
1 parent 122e3a4 commit e31b60e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/Tree.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export default {
6060
})
6161
return result
6262
},
63-
6463
buildTree () {
6564
let build = this.transformToTree(this.componentMap)
6665
this.tree = build['App']

src/store/mutations.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ const mutations = {
164164
[types.UPDATE_ACTIVE_COMPONENT_CHILDREN_VALUE]: (state, payload) => {
165165
// original line
166166
state.componentMap[state.activeComponent].children = payload
167-
state.componentMap[state.activeRoute].children = state.componentMap[state.activeRoute].children.filter(el => el !== payload[0])
167+
// state.componentMap[state.activeRoute].children = state.componentMap[state.activeRoute].children.filter(el => el !== payload[0])
168+
state.componentMap[state.activeRoute].children = state.componentMap[state.activeRoute].children.filter(el => !payload.includes(el))
168169
},
169170
// allows usr to change the name of component!!
170171
[types.UPDATE_COMPONENT_NAME_INPUT_VALUE]: (state, payload) => {

0 commit comments

Comments
 (0)