Skip to content

Commit

Permalink
Reverting dash_ag_grid columnDefs optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
petar-qb committed Aug 26, 2024
1 parent 639e175 commit ce00213
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions vizro-core/src/vizro/tables/_dash_ag_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ def dash_ag_grid(data_frame: pd.DataFrame, **kwargs) -> dag.AgGrid:
>>> vm.Page(title="Page", components=[vm.AgGrid(figure=dash_ag_grid(...))])
"""
if "columnDefs" in kwargs:
used_columns = [col["field"] for col in kwargs["columnDefs"] if col["field"] in data_frame.columns]
data_frame = data_frame[used_columns]
defaults = {
"className": "ag-theme-quartz-dark ag-theme-vizro",
"columnDefs": [{"field": col} for col in data_frame.columns],
Expand Down

0 comments on commit ce00213

Please sign in to comment.