Skip to content

Commit cd33c3a

Browse files
committed
[Map][Leaflet] Fix Popup's automatic-content
1 parent e122096 commit cd33c3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Map/src/Bridge/Leaflet/assets/src/map_controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default class extends AbstractMapController<
7171
}): Popup {
7272
const { headerContent, content, rawOptions = {}, ...otherOptions } = definition;
7373

74-
marker.bindPopup(`${headerContent}<br>${content}`, { ...otherOptions, ...rawOptions });
74+
marker.bindPopup([headerContent, content].filter(x => x).join('<br>'), { ...otherOptions, ...rawOptions });
7575
if (definition.opened) {
7676
marker.openPopup();
7777
}

0 commit comments

Comments
 (0)