File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ export default {
60
60
})
61
61
return result
62
62
},
63
-
64
63
buildTree () {
65
64
let build = this .transformToTree (this .componentMap )
66
65
this .tree = build[' App' ]
Original file line number Diff line number Diff line change @@ -164,7 +164,8 @@ const mutations = {
164
164
[ types . UPDATE_ACTIVE_COMPONENT_CHILDREN_VALUE ] : ( state , payload ) => {
165
165
// original line
166
166
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 ) )
168
169
} ,
169
170
// allows usr to change the name of component!!
170
171
[ types . UPDATE_COMPONENT_NAME_INPUT_VALUE ] : ( state , payload ) => {
You can’t perform that action at this time.
0 commit comments