diff --git a/web/client/components/data/featuregrid/FeatureGrid.jsx b/web/client/components/data/featuregrid/FeatureGrid.jsx index 16ced740c2..c668ac9c1b 100644 --- a/web/client/components/data/featuregrid/FeatureGrid.jsx +++ b/web/client/components/data/featuregrid/FeatureGrid.jsx @@ -362,7 +362,7 @@ const FeatureGrid = React.createClass({ let selectedId = this.props.highlightedFeatures; let me = this; this.api.forEachNode((n) => { - if (selectedId.includes(n.data.id)) { + if (selectedId.indexOf(n.data.id) !== -1) { me.api.selectNode(n, true, true); }else if (me.api.isNodeSelected(n)) { me.suppresSelectionEvent = true; diff --git a/web/client/components/map/leaflet/HighlightFeatureSupport.jsx b/web/client/components/map/leaflet/HighlightFeatureSupport.jsx index 68424a2c4c..ed81627768 100644 --- a/web/client/components/map/leaflet/HighlightFeatureSupport.jsx +++ b/web/client/components/map/leaflet/HighlightFeatureSupport.jsx @@ -125,7 +125,7 @@ const HighlightFeatureSupport = React.createClass({ this._selectedFeatures.map((f) => {this._layer.resetStyle(f); }); this._selectedFeatures = []; this._layer.eachLayer((l)=> { - if (features.includes(l.msId)) { + if (features.indexOf(l.msId) !== -1) { this._selectedFeatures.push(l); l.bringToFront(); l.setStyle(this.props.selectedStyle); diff --git a/web/client/components/map/openlayers/HighlightFeatureSupport.jsx b/web/client/components/map/openlayers/HighlightFeatureSupport.jsx index 2f3669c16a..b76c03e2a9 100644 --- a/web/client/components/map/openlayers/HighlightFeatureSupport.jsx +++ b/web/client/components/map/openlayers/HighlightFeatureSupport.jsx @@ -152,7 +152,7 @@ const HighlightFeatureSupport = React.createClass({ if (layer) { let ft = layer.getSource().getFeatures(); ft.map((f)=> { - if (features.includes(f.getId())) { + if (features.indexOf(f.getId()) !== -1) { ftColl.push(f); } }, this); diff --git a/web/client/components/maps/forms/Thumbnail.jsx b/web/client/components/maps/forms/Thumbnail.jsx index b5ebbb34ce..9e02c92256 100644 --- a/web/client/components/maps/forms/Thumbnail.jsx +++ b/web/client/components/maps/forms/Thumbnail.jsx @@ -158,7 +158,7 @@ const Thumbnail = React.createClass({ this.getDataUri(this.files, callback); }, deleteThumbnail(thumbnail, mapId) { - if (thumbnail && thumbnail.includes("geostore")) { + if (thumbnail && thumbnail.indexOf("geostore") !== -1) { // this doesn't work if the URL is not encoded (because of GeoStore / Tomcat parameter encoding issues) let start = (thumbnail).indexOf("data%2F") + 7; let end = (thumbnail).indexOf("%2Fraw");