diff --git a/packages/core-data/src/components/PlaceLayersSelector.js b/packages/core-data/src/components/PlaceLayersSelector.js index 6a2eb4b4..59c18ceb 100644 --- a/packages/core-data/src/components/PlaceLayersSelector.js +++ b/packages/core-data/src/components/PlaceLayersSelector.js @@ -47,7 +47,7 @@ const PlaceLayersSelector = (props: Props) => { if (isSelected(layer)) { setSelectedLayers((prevSelected) => _.filter(prevSelected, (l) => l.url !== layer.url)); } else { - setSelectedLayers((prevSelected) => [...prevSelected, layer]); + setSelectedLayers((prevSelected) => [...prevSelected, { ...layer, content: JSON.parse(layer.content || '{}') }]); } }, [isSelected]);