Skip to content

Commit

Permalink
reset to empty array instead of deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Apr 13, 2020
1 parent 02b6c93 commit 4e04bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/maps/public/reducers/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const updateLayerSourceDescriptorProp = (state, layerId, propName, value, newLay
};
if (newLayerType && newLayerType !== layerList[layerIdx].type) {
// clear out data requests for previous layer type
delete updatedLayer.__dataRequests;
updatedLayer.__dataRequests = [];
updatedLayer.type = newLayerType;
}
const updatedList = [
Expand Down

0 comments on commit 4e04bff

Please sign in to comment.