# Bug OP-19036 - Items multiplying on page and page becoming unresponsive when macros and code snippet are used

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-19036

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Work packages |
| Target versions | 17.3.1 |
| Observed in versions |  |
| Sprint | 17.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### 

### Steps to reproduce

1.  Login as a user and open a work package/Relations tab

2.  Go to the members page

3.  Add a new relation: Create a child

4.  When the creation modal opens, click on Macros, then choose Embed work package table (not working, we have a bug for this <mention class="mention" data-id="62585" data-type="work_package" data-text="#62585">#62585</mention>)

5.  Click outside the modal to close the background action

6.  Click on Code snippet

### What is the buggy behavior?

  - Items start multiplying on the page and the page becomes unresponsive

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/919755/content">

### What is the expected behavior?

1.  Code snippet should open without issues 

### 

### Environment information

**OpenProject version**

**Core build**

[58f4e4c0b34f3a51bff95f8b6bfc282b11ab38f2](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fopenproject%2Fcommit%2F58f4e4c0b34f3a51bff95f8b6bfc282b11ab38f2)

**Product version**

[a73417efe86cd2e814f0442a2b08c1b1b5a17b89](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fsaas-openproject%2Fcommit%2Fa73417efe86cd2e814f0442a2b08c1b1b5a17b89)

**Core version**

OpenProject 17.2.1
