You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[BUG] reimplement verification of a json file when validation button pressed in json editor , right now json isnt verified for errors.commented out
#51
Open
1 task done
Pewillia opened this issue
Oct 22, 2024
· 0 comments
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;
};C
Steps To Reproduce
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: