Canadian-Geospatial-Platform / geoview-demo

Demo Page For GeoView
GNU General Public License v3.0
0 stars 3 forks source link

[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 Pewillia opened 3 days ago

Pewillia commented 3 days ago

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