# Generic cloning of a hierarchy

**URL:** <https://community.fibery.io/t/generic-cloning-of-a-hierarchy/6152>\
**Category:** Fibery Showcase\
**Created:** [May 6, 2024, 2:09pm UTC](https://community.fibery.io/t/generic-cloning-of-a-hierarchy/6152 "2024-05-06T14:09:24Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [May 7, 2024, 9:14am UTC](https://community.fibery.io/t/generic-cloning-of-a-hierarchy/6152/5 "2024-05-07T09:14:46Z")

</div>

> [@New template - Finance money\_bag](https://community.fibery.io/t/new-template-finance/2685/17):
>
> In your case loop should be detected as per algorithm I’ve described above. (Un)Fortunately there is a bug in current implementation, that breaks loop detection for operations called from js scripts. So if you make a change from JS script, that chain I’ve described above is broken and starts anew. Some day I will fix it and your rule will break upside_down_face For scripts we can improve though, and check actual fiberyApi calls from scripts, if they are duplicated in a chain. Cannot promise…

---

_[View the full topic](https://community.fibery.io/t/generic-cloning-of-a-hierarchy/6152)._
