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

Responsive data tables: error on filter change #20

Closed
alexiscott opened this issue Dec 22, 2017 · 1 comment
Closed

Responsive data tables: error on filter change #20

alexiscott opened this issue Dec 22, 2017 · 1 comment
Assignees

Comments

@alexiscott
Copy link

alexiscott commented Dec 22, 2017

The Problem

screen shot 2017-12-22 at 10 45 14

To reproduce the issue: visit /dashboard/summary and change the school filter to "Dubois integrity academy".

Technical

The issue seems to relate to the fact that the year options can be different from one school to another. When the tables are rebuilt i.e. after a filter change the expectations data tables is still expecting the previous year values. The issue I have traced to dt.rows.add

  updateDataTable(data) {
    let dt = $(this.refs.main).DataTable();
    dt.rows.add(data); 
    dt.columns.adjust().draw();
  }
@alexiscott
Copy link
Author

Duplicate of 156.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant