Skip to content

Commit

Permalink
fix: resolve memory leak caused by console references
Browse files Browse the repository at this point in the history
Logging grid data keeps a reference to the object in the console,
preventing it from being garbage collected.
  • Loading branch information
mariobuikhuizen committed Apr 29, 2024
1 parent be0de68 commit 4d21699
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions js/src/widget_export.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ exportFunc.exportRangeData = (options, view) => {
index_columns: res.columns,
},
};
console.log(toUp);
view.model.set('_grid_data_up', toUp);
view.touch();
};
Expand Down Expand Up @@ -87,7 +86,6 @@ const exportRowsFunc = (options, view, rows) => {
index_columns: res.columns,
},
};
console.log(toUp);
view.model.set('_grid_data_up', toUp);
view.touch();
};
Expand Down Expand Up @@ -181,7 +179,6 @@ exportFunc.exportColumns = (options, view) => {
index_columns: res.columns,
},
};
console.log(toUp);
view.model.set('_grid_data_up', toUp);
view.touch();
};
Expand Down Expand Up @@ -227,7 +224,6 @@ exportFunc.exportGrid = function(options, view, level = 0) {
index_columns: res.columns,
},
};
console.log(toUp);
view.model.set('_grid_data_up', toUp);
view.touch();
};
Expand Down

0 comments on commit 4d21699

Please sign in to comment.