mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-15 23:21:22 +01:00
Ensure key uniqueness in FeaturePropertyPopup
This commit is contained in:
parent
98ded98583
commit
06c3c92fd6
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ function renderProperties(feature) {
|
|||
}
|
||||
|
||||
function renderFeature(feature) {
|
||||
return <div key={feature.id}>
|
||||
return <div key={`${feature.sourceLayer}-${feature.id}`}>
|
||||
<div className="maputnik-popup-layer-id">{feature.layer['source-layer']}{feature.inspectModeCounter && <span> × {feature.inspectModeCounter}</span>}</div>
|
||||
<InputBlock key={"property-type"} label={"$type"}>
|
||||
<StringInput value={feature.geometry.type} style={{backgroundColor: 'transparent'}} />
|
||||
|
|
Loading…
Reference in a new issue