Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Id collision error when replacing data if store is filtered #211

Closed
matsbryntse opened this issue Jan 20, 2020 · 0 comments
Closed

Id collision error when replacing data if store is filtered #211

matsbryntse opened this issue Jan 20, 2020 · 0 comments
Assignees
Labels
bug Something isn't working in progress
Milestone

Comments

@matsbryntse
Copy link
Member

matsbryntse commented Jan 20, 2020

https://www.bryntum.com/forum/viewtopic.php?f=52&t=13145
Open basic gantt demo and run the code below:

const taskStore = gantt.taskStore;
taskStore.data = [
              {
                "id": 1,
                "name": "Task 1",
                "startDate": "2019-09-18",
                "endDate": "2019-09-22",
                "expanded": true,
                "children": [
                  {
                    "id": 2,
                    "name": "Task 2",
                    "startDate": "2019-09-18",
                    "endDate": "2019-09-19"
                  },
                  {
                    "id": 3,
                    "name": "Task 3",
                    "startDate": "2019-09-20",
                    "endDate": "2019-09-22"
                  }
                ]
              }
            ];

            taskStore.filter(t => false);
            taskStore.data = [
              {
                "id": 1,
                "name": "Task 1",
                "startDate": "2019-09-18",
                "endDate": "2019-09-22",
                "expanded": true,
                "children": [
                  {
                    "id": 2,
                    "name": "Task 2",
                    "startDate": "2019-09-18",
                    "endDate": "2019-09-19"
                  },
                  {
                    "id": 3,
                    "name": "Task 3",
                    "startDate": "2019-09-20",
                    "endDate": "2019-09-22"
                  }
                ]
              }
            ];
@matsbryntse matsbryntse added the bug Something isn't working label Jan 20, 2020
@matsbryntse matsbryntse added this to the Grid 3.0.2 milestone Jan 20, 2020
@matsbryntse matsbryntse modified the milestones: Grid 3.0.2, Grid 3.0.3 Jan 29, 2020
@jsakalos jsakalos self-assigned this Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in progress
Projects
None yet
Development

No branches or pull requests

2 participants