Open Pewillia opened 3 days ago
Json file not validated, if error it hangs after pressing create map button and no map is displayed
const validateConfigJson = (json: string): string | null => { try { const str = json.replaceAll(', "); //const configJSON = JSON.parse(str); cgpv.api.config.createMapConfig(str, 'en'); } catch (e: any) { return cgpv.api.utilities.core.escapeRegExp(e.message); } return null; };C
'
"
No response
Is there an existing issue for this?
Current Behavior
Json file not validated, if error it hangs after pressing create map button and no map is displayed
Expected Behavior
const validateConfigJson = (json: string): string | null => { try { const str = json.replaceAll(
'
,"
); //const configJSON = JSON.parse(str); cgpv.api.config.createMapConfig(str, 'en'); } catch (e: any) { return cgpv.api.utilities.core.escapeRegExp(e.message); } return null; };CSteps To Reproduce
No response
Anything else?
No response