Skip to content

Commit

Permalink
CDC #248 - Updating PlaceLayersSelector component to parse "content" …
Browse files Browse the repository at this point in the history
…attribute
  • Loading branch information
dleadbetter committed Jul 23, 2024
1 parent 72d6632 commit c38c46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-data/src/components/PlaceLayersSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit c38c46c

Please sign in to comment.