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 {
6060 })
6161 return result
6262 },
63-
6463 buildTree () {
6564 let build = this .transformToTree (this .componentMap )
6665 this .tree = build[' App' ]
Original file line number Diff line number Diff 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 ) => {
You can’t perform that action at this time.
0 commit comments