Fix remove block (#195)

This commit is contained in:
formsdev
2023-09-08 19:35:56 +05:30
committed by GitHub
parent 7119ec2304
commit f82a8afe79
2 changed files with 3 additions and 3 deletions

View File

@@ -294,10 +294,10 @@ export default {
this.$store.commit('open/working_form/openSettingsForField', this.formFields.length-1)
},
removeBlock(blockIndex) {
this.closeSidebar()
const newFields = clonedeep(this.formFields)
newFields.splice(blockIndex, 1)
this.$set(this, 'formFields', newFields)
this.closeSidebar()
},
closeSidebar() {
this.$store.commit('open/working_form/closeEditFieldSidebar')