Skip to content

Commit 6bb39cb

Browse files
committed
Fix nested block
1 parent 2a5557f commit 6bb39cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/js/mixins/block.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ export default {
2323
return this.name + '[' + id + ']' // output : nameOfBlock[UniqID][name]
2424
},
2525
repeaterName: function (id) {
26-
return this.nested_block_name + this.name.replace('[', '-').replace(']', '') + '|' + id // nameOfBlock-UniqID|name
26+
return this.nested_block_name + this.nestedEditorName(id)
2727
},
2828
nestedEditorName: function (id) {
29-
return this.repeaterName(id)
29+
return this.name.replace('[', '-').replace(']', '') + '|' + id // nameOfBlock-UniqID|name
3030
}
3131
}
3232
}

0 commit comments

Comments
 (0)