mirror of
https://github.com/maputnik/editor.git
synced 2026-10-30 14:53:44 +00:00
Update style-spec package to 26.1 (#2005)
## Launch Checklist Update style-spec package to version 26.1 This should solve a problem related to expression validation. - [x] Briefly describe the changes in this PR. - [x] Link to related issues.
This commit is contained in:
@@ -119,7 +119,7 @@ function createMaplibreExpressionLinter(spec?: StylePropertySpecification) {
|
||||
const text = view.state.doc.toString();
|
||||
const parsedJson = JSON.parse(text);
|
||||
const ast = jsonToAst(text);
|
||||
const out = expression.createExpression(parsedJson, spec);
|
||||
const out = expression.createExpression(parsedJson, "expression", spec);
|
||||
if (out?.result !== "error") {
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user