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

Rollups + loading nodes on demand causes a crash #4232

Closed
matsbryntse opened this issue Feb 18, 2022 · 0 comments
Closed

Rollups + loading nodes on demand causes a crash #4232

matsbryntse opened this issue Feb 18, 2022 · 0 comments
Labels
bug Something isn't working resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@matsbryntse
Copy link
Member

import '../_shared/shared.js'; // not required, our example styling etc.
import Gantt from '../../lib/Gantt/view/Gantt.js';
import '../../lib/Gantt/feature/Rollups.js';
import ProjectModel from '../../lib/Gantt/model/ProjectModel.js';

const project = new ProjectModel({
    autoLoad  : true,
    transport : {
        load : {
            url : './_dirty1.json'
        }
    },
    taskStore : {
        readUrl : './_dirty2.json'
    }
});

new Gantt({
    appendTo : 'container',
    project,
    features : {
        rollups : true
    },
    columns : [
        { type : 'name', width : 250 }
    ]
});

Rollups.js:189 Uncaught (in promise) TypeError: taskRecord.children.slice is not a function
    at Rollups.onTaskDataGenerated (Rollups.js:189:48)
    at functionChainRunner (InstancePlugin.js:358:31)
    at Gantt.plugInto.<computed> [as onTaskDataGenerated] (InstancePlugin.js:329:49)
    at NewTaskRendering.populateTaskRenderData (NewTaskRendering.js:593:15)
    at NewTaskRendering.renderer (NewTaskRendering.js:688:16)
    at TimeAxisColumn.internalRenderer (TimeAxisColumn.js:346:42)
    at Row.renderCell (Row.js:691:39)
    at Row.render (Row.js:550:23)
    at RowManager.renderFromRow (RowManager.js:939:17)
    at RowManager.reinitialize (RowManager.js:174:12)
@matsbryntse matsbryntse added the bug Something isn't working label Feb 18, 2022
@matsbryntse matsbryntse added this to the 5.0 milestone Feb 18, 2022
@matsbryntse matsbryntse added ready for review Issue is fixed, the pull request is being reviewed resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

1 participant