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.
1 parent bd38fa0 commit af44315Copy full SHA for af44315
src/store/mutations.js
@@ -221,10 +221,20 @@ const mutations = {
221
const componentName = state.activeComponent
222
const htmlList = state.componentMap[componentName].htmlList.slice(0)
223
// splice out selected element and return resulting array
224
+ if(state.activeLayer.id === '')
225
+ {
226
+ for(let i = 0; i<htmlList.length; i++){
227
+ if(htmlList[i].id === id){
228
+ htmlList.splice(i,1)
229
+ break
230
+ }
231
232
+ } else{
233
let element = breadthFirstSearchParent(htmlList, id);
234
console.log("This is element", element)
235
element.evaluated.children.splice(element.index,1);
236
// htmlList.splice(idx, 1)
237
238
239
state.componentMap[componentName].htmlList = htmlList
240
},
0 commit comments