Skip to content

Commit

Permalink
Fix nested block
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel committed Feb 27, 2024
1 parent 2a5557f commit 6bb39cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/js/mixins/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ export default {
return this.name + '[' + id + ']' // output : nameOfBlock[UniqID][name]
},
repeaterName: function (id) {
return this.nested_block_name + this.name.replace('[', '-').replace(']', '') + '|' + id // nameOfBlock-UniqID|name
return this.nested_block_name + this.nestedEditorName(id)
},
nestedEditorName: function (id) {
return this.repeaterName(id)
return this.name.replace('[', '-').replace(']', '') + '|' + id // nameOfBlock-UniqID|name
}
}
}

0 comments on commit 6bb39cb

Please sign in to comment.