Skip to content

Commit

Permalink
Fix #1818 Missing connection between map and viewer (#1833) (#1835)
Browse files Browse the repository at this point in the history
Co-authored-by: stefano bovio <stefano.bovio@geosolutionsgroup.com>
  • Loading branch information
giohappy and allyoucanmap authored Jul 31, 2024
1 parent c227d48 commit e49d2bf
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 @@ -206,7 +206,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 e49d2bf

Please sign in to comment.