Skip to content

Commit

Permalink
Fix #1818 Missing connection between map and viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
allyoucanmap committed Jul 31, 2024
1 parent ce59bee commit 20da360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geonode_mapstore_client/client/js/epics/gnresource.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const resourceTypes = {
getNewMapConfiguration(),
getMapByPk(pk)
.then((resource) => {
const mapViewers = get(resource, 'linkedResources.linkedTo', [])
const mapViewers = get(resource, 'linked_resources.linked_to', [])
.find(({ resource_type: type } = {}) => type === ResourceTypes.VIEWER);
return mapViewers?.pk
? axios.all([{...resource}, getGeoAppByPk(mapViewers?.pk, {api_preset: 'catalog_list', include: ['data', 'linked_resources']})])
Expand Down

0 comments on commit 20da360

Please sign in to comment.