Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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
Assignees

Comments

@Pewillia
Copy link
Collaborator

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

@Pewillia Pewillia self-assigned this Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant