diff --git a/IsraelHiking.Web/src/application/services/geojson-utils.ts b/IsraelHiking.Web/src/application/services/geojson-utils.ts index f4650192..c34e09c1 100644 --- a/IsraelHiking.Web/src/application/services/geojson-utils.ts +++ b/IsraelHiking.Web/src/application/services/geojson-utils.ts @@ -3,7 +3,7 @@ import { LatLngAlt } from "../models/models"; export class GeoJSONUtils { public static setPropertyUnique(feature: GeoJSON.Feature, key: string, value: string) { - let hasValue = Object.keys(feature.properties).filter(k => k.includes(key)).some(k => feature.properties[k] === value); + const hasValue = Object.keys(feature.properties).filter(k => k.includes(key)).some(k => feature.properties[k] === value); if (!hasValue) { GeoJSONUtils.setProperty(feature, key, value); }