From fc6a7baaf39b57bbb62a46ac61397952d9ac8caf Mon Sep 17 00:00:00 2001 From: stefano bovio Date: Wed, 31 Jul 2024 10:39:35 +0200 Subject: [PATCH] Fix #1818 Missing connection between map and viewer (#1833) --- geonode_mapstore_client/client/js/epics/gnresource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geonode_mapstore_client/client/js/epics/gnresource.js b/geonode_mapstore_client/client/js/epics/gnresource.js index 45d1a12a6c..4b33315782 100644 --- a/geonode_mapstore_client/client/js/epics/gnresource.js +++ b/geonode_mapstore_client/client/js/epics/gnresource.js @@ -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']})])