diff --git a/UI/ShowDataLayer/ShowDataLayer.ts b/UI/ShowDataLayer/ShowDataLayer.ts
index ade1860ae..e180cdf5d 100644
--- a/UI/ShowDataLayer/ShowDataLayer.ts
+++ b/UI/ShowDataLayer/ShowDataLayer.ts
@@ -223,7 +223,9 @@ export default class ShowDataLayer {
popup.setContent(`
Rendering
`)
leafletLayer.on("popupopen", () => {
- State.state.selectedElement.setData(feature)
+ if(State.state.selectedElement.data?.properties?.id !== feature.properties.id){
+ State.state.selectedElement.setData(feature)
+ }
if (infobox === undefined) {
const tags = State.state.allElements.getEventSourceById(feature.properties.id);