# Bug OP-19227 - Budget widget breaks when lots of cost types defined

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Immediate |
| Module | Modules and project features / Project overview, Modules and project features / Costs and budgets |
| Target versions | 17.3.2 |
| Observed in versions | 17.3.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.3.x |
| 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 | Oliver Günther |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Before filing a report

_Before you file a report, please ensure you are running the latest version of OpenProject and_&nbsp;  
_have searched for similar bug reports._

### Steps to reproduce

_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_

1.  Have project with many budgets and cost types used in it
    
    1.  data point is 40+ budgets, 100+ cost types. But I think 17 should be enough to trigger the bug
        
2.  Look at the overview graph
    

<br>

### What is the buggy behavior?

_Please describe the bug in as much detail as possible. Example:_

*   Endless loop on the graph, fails to render
    
*   Even with the fixed loop, the graph is not really useful
    

<br>

### What is the expected behavior?

_Describe how the application should behave like. Example:_

1.  Some useful render or not showing the graph with that many budgets?
