[BUG] reimplement verification of a json file when validation button pressed in json editor , right now json isnt verified for errors.commented out
Closed this issue · 0 comments
Pewillia commented
Is there an existing issue for this?
- I have searched the existing issues
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;
};C
Steps To Reproduce
No response
Anything else?
No response