From 4a7678a12725a872e4f7f141c8627affbec81fdb Mon Sep 17 00:00:00 2001 From: okg21 Date: Wed, 24 Jul 2024 22:13:08 +0300 Subject: [PATCH] backwards compability for mapProperties namespace Refine/fix import/export operations #712 --- app/js/app-menu.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/js/app-menu.js b/app/js/app-menu.js index 463a87f2..86fdfb17 100644 --- a/app/js/app-menu.js +++ b/app/js/app-menu.js @@ -819,8 +819,11 @@ module.exports = function() { // get and set properties from file var properties = chiseInstance.getMapProperties(); // init map properties - var mapProperties = ( properties && properties['nwt:mapProperties'] ) ? properties['nwt:mapProperties'] : {}; - + var mapProperties = (properties && properties['nwt:mapProperties']) + ? properties['nwt:mapProperties'] + : (properties && properties.mapProperties) + ? properties.mapProperties + : {}; var urlParams = appUtilities.getScratch(cy, 'urlParams'); if (urlParams) {