Skip to content

Commit

Permalink
Fix from comments on cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
spong committed Oct 8, 2019
1 parent 6e09f7a commit 5a3066a
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,12 @@ export const MapToolTip = React.memo<MapToolTipProps>(

const fetchFeatureProps = async () => {
if (features[featureIndex] != null) {
const layerId = features[featureIndex].layerId;
const featureId = features[featureIndex].id;
const [featureProperties, featureGeo, layerNameString] = await Promise.all([
loadFeatureProperties({
layerId: features[featureIndex].layerId,
featureId: features[featureIndex].id,
}),
loadFeatureGeometry({
layerId: features[featureIndex].layerId,
featureId: features[featureIndex].id,
}),
getLayerName(features[featureIndex].layerId),
loadFeatureProperties({ layerId, featureId }),
loadFeatureGeometry({ layerId, featureId }),
getLayerName(layerId),
]);

// Fetch ES filters in advance while loader is present to prevent lag when user clicks to add filter
Expand Down

0 comments on commit 5a3066a

Please sign in to comment.