mirror of
https://github.com/maputnik/editor.git
synced 2026-08-01 02:37:40 +00:00
Fix many React warnings
This commit is contained in:
@@ -16,12 +16,6 @@ const Panel = (props) => {
|
||||
}}>{props.children}</div>
|
||||
}
|
||||
|
||||
function renderFeature(feature) {
|
||||
return <div>
|
||||
<Panel>{feature.layer['source-layer']}</Panel>
|
||||
</div>
|
||||
}
|
||||
|
||||
function groupFeaturesBySourceLayer(features) {
|
||||
const sources = {}
|
||||
features.forEach(feature => {
|
||||
@@ -52,7 +46,7 @@ class FeatureLayerPopup extends React.Component {
|
||||
{feature.layer.id}
|
||||
</label>
|
||||
})
|
||||
return <div>
|
||||
return <div key={vectorLayerId}>
|
||||
<Panel>{vectorLayerId}</Panel>
|
||||
{layers}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user