Fix undefined while destructuring assignment
This commit is contained in:
@@ -270,7 +270,10 @@ module.exports = class NumericHistogram extends BaseDataview {
|
||||
nans = firstRow.nans_count;
|
||||
binsStart = this._populateBinStart(override, firstRow);
|
||||
|
||||
buckets = result.rows.map(row => ({ bin, min, max, avg, freq } = row));
|
||||
buckets = result.rows.map(row => {
|
||||
const { bin, min, max, avg, freq } = row;
|
||||
return { bin, min, max, avg, freq };
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user