Skip to content

Commit b8f36b4

Browse files
spliffonespike-rabbit
authored andcommitted
fix(map): avoid TypeError when clicking point without handler
1 parent e521c20 commit b8f36b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/maps-ng/src/components/si-map/si-map.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ export class SiMapComponent implements AfterViewInit, OnChanges, OnDestroy, Afte
11401140
mapPoints: feature.getProperties() as MapPointMetaData
11411141
});
11421142
if (extraProperties) {
1143-
feature.getProperties().click(extraProperties);
1143+
feature.getProperties().click?.(extraProperties);
11441144
}
11451145
} else if (this.geoJson()) {
11461146
const coordinates = event.coordinate;

0 commit comments

Comments
 (0)