Skip to content

Commit 947ae70

Browse files
fix: resolve memory leak caused by console references
Logging grid data keeps a reference to the object in the console, preventing it from being garbage collected.
1 parent 44cb070 commit 947ae70

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

js/src/widget_export.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ exportFunc.exportRangeData = (options, view) => {
5252
index_columns: res.columns,
5353
},
5454
};
55-
console.log(toUp);
5655
view.model.set('_grid_data_up', toUp);
5756
view.touch();
5857
};
@@ -87,7 +86,6 @@ const exportRowsFunc = (options, view, rows) => {
8786
index_columns: res.columns,
8887
},
8988
};
90-
console.log(toUp);
9189
view.model.set('_grid_data_up', toUp);
9290
view.touch();
9391
};
@@ -181,7 +179,6 @@ exportFunc.exportColumns = (options, view) => {
181179
index_columns: res.columns,
182180
},
183181
};
184-
console.log(toUp);
185182
view.model.set('_grid_data_up', toUp);
186183
view.touch();
187184
};
@@ -227,7 +224,6 @@ exportFunc.exportGrid = function(options, view, level = 0) {
227224
index_columns: res.columns,
228225
},
229226
};
230-
console.log(toUp);
231227
view.model.set('_grid_data_up', toUp);
232228
view.touch();
233229
};

0 commit comments

Comments
 (0)