diff --git a/builder/builder/doctype/builder_page/builder_page.py b/builder/builder/doctype/builder_page/builder_page.py index 5df16724..248b7b06 100644 --- a/builder/builder/doctype/builder_page/builder_page.py +++ b/builder/builder/doctype/builder_page/builder_page.py @@ -418,7 +418,7 @@ def get_tag(block, soup, data_key=None): if data_key: _key = f"{data_key}.{_key}" - item_key = f"key_{block.get('blockId')}" + item_key = f"key_{_key.replace('.', '__')}" tag.append(f"{{% for {item_key} in {_key} %}}") tag.append(get_tag(block.get("children")[0], soup, item_key)) tag.append("{% endfor %}")