mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-26 18:50:38 +01:00
Remove JSON.stringify in call to validate
This commit is contained in:
parent
5b1ee7296b
commit
56d96a248d
1 changed files with 2 additions and 4 deletions
|
@ -97,9 +97,7 @@ CodeMirror.registerHelper("lint", "mgl", function(text, opts, doc) {
|
|||
let out;
|
||||
if (context === "layer") {
|
||||
// Just an empty style so we can validate a layer.
|
||||
// TODO: this seems to be a hack caused by TypeScript or something causing issues.
|
||||
// TODO: Needs to be investigated and fixed.
|
||||
const errors = validate(JSON.stringify({
|
||||
const errors = validate({
|
||||
"version": 8,
|
||||
"name": "Empty Style",
|
||||
"metadata": {},
|
||||
|
@ -109,7 +107,7 @@ CodeMirror.registerHelper("lint", "mgl", function(text, opts, doc) {
|
|||
"layers": [
|
||||
input
|
||||
]
|
||||
}));
|
||||
});
|
||||
|
||||
if (errors) {
|
||||
out = {
|
||||
|
|
Loading…
Reference in a new issue