Remove local variable
This commit is contained in:
parent
85e7245a33
commit
2f68d658f0
@ -40,8 +40,7 @@ module.exports = class AggregationMapConfigAdapter {
|
||||
const layers = mapConfig.getLayers();
|
||||
|
||||
for (let index = 0; index < layers.length; index++) {
|
||||
const layer = layers[index];
|
||||
const { aggregation } = layer.options;
|
||||
const { aggregation } = layers[index].options;
|
||||
const aggregationColumns = this._getAggregationColumns(aggregation);
|
||||
const layerColumns = mapConfig.getColumnsByLayer(index);
|
||||
|
||||
@ -53,7 +52,7 @@ module.exports = class AggregationMapConfigAdapter {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!this._haveSameColumns(aggregationColumns,layerColumns)) {
|
||||
if (!this._haveSameColumns(aggregationColumns, layerColumns)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user