Skip to content

Commit ebaf691

Browse files
committed
fixed minor issue when deleting while having an active html
1 parent af44315 commit ebaf691

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/store/mutations.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,11 @@ const mutations = {
231231
}
232232
} else{
233233
let element = breadthFirstSearchParent(htmlList, id);
234-
console.log("This is element", element)
234+
if(id = state.activeHTML)
235+
{
236+
state.activeHTML =''
237+
}
238+
//console.log("This is element", element)
235239
element.evaluated.children.splice(element.index,1);
236240
// htmlList.splice(idx, 1)
237241
}

0 commit comments

Comments
 (0)