# Bug OP-6729 - Console error when switching from card to gantt view

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 10.4.0 |
| Observed in versions |  |
| Sprint | 10.4.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.  Go to the work package page
2.  Change to the card view
3.  Change to the Gantt view

### **Actual Behavior**

*   The view loads correctly, but there is an error on the console.

![](/api/v3/attachments/17147/content)

### **Expected Behavior**

*   There should be no error.
