Skip to content

Destroy and/or update items not working #140

Description

@Bookingfor

Describe the bug
I am tyrying to reset data in timeline or destroy the whole app, but it seems that has no effect, while function scrollToTime works.
There are almost 300 rows and over 5000 items.

To Reproduce
Steps to reproduce the behavior:
var schedule = GSTC(element, state);
...
//DOES NOT WORK
schedule.state.update('config.list.rows', allRows);
schedule.state.update('config.chart.items', allItems);
schedule.app.destroy();
//WORKS
schedule.api.scrollToTime(new Date(currentYear, currentMonth, currentDay));

Expected behavior
Update timeline after set new rows/items and, if necessary, destroy.

Desktop (please complete the following information):

  • Browser: chrome 83.0.4103.97

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions