Skip to content

Commit 852c0fc

Browse files
committed
nit:PR feedback for more concise fn
1 parent e848a67 commit 852c0fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SpatialFeaturesLayer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ const SpatialFeaturesLayer = ({ onFeatureClick }) => {
372372
if (!map?.hasImage?.('marker-icon')) {
373373
addMapImage({ src: MarkerImage, id: 'marker-icon' });
374374
}
375-
if (!!map && !map.hasImage('ranger-stations')) {
375+
if (!map?.hasImage?.('ranger-stations')) {
376376
addMapImage({ src: RangerStationsImage, id: 'ranger-stations' });
377377
}
378378
}, [map]);

0 commit comments

Comments
 (0)