diff --git a/web/client/reducers/config.js b/web/client/reducers/config.js index 45a0a6a44e..286796e176 100644 --- a/web/client/reducers/config.js +++ b/web/client/reducers/config.js @@ -63,7 +63,7 @@ function mapConfig(state = null, action) { // if map is loaded from an already saved map keep the same id let mapId = state?.map?.mapId || state?.map?.present?.mapId; mapId = action.config?.fileName && mapId ? mapId : action.mapId; - newMapState.map = assign({}, newMapState.map, {mapId, size, bbox, version: hasVersion ? action.config.version : 1}); + newMapState.map = assign({}, newMapState.map, {mapId, size, bbox, version: hasVersion ? action.config.version : 1, info: state?.map?.present?.info}); // we store the map initial state for future usage return assign({}, newMapState, {mapInitialConfig: {...newMapState.map, mapId: action.mapId}}); case MAP_CONFIG_LOAD_ERROR: