Skip to content

Commit

Permalink
DBC22-2998: fixed advisories panel on map
Browse files Browse the repository at this point in the history
(cherry picked from commit f54b5c2)
  • Loading branch information
ray-oxd committed Dec 10, 2024
1 parent 672157c commit 208ec82
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/frontend/src/Components/map/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,8 @@ export default function DriveBCMap(props) {
const [staleLinkMessage, setStaleLinkMessage] = useState();
const clickedFeatureRef = useRef();
const updateClickedFeature = feature => {

// Remove highlight from feature on click
if (feature && feature.get('highlight')) {

if (feature && feature instanceof Feature && feature.get('highlight')) {
// Remove highlight from feature
feature.set("highlight", false)

Expand Down

0 comments on commit 208ec82

Please sign in to comment.