mirror of
https://github.com/maputnik/editor.git
synced 2025-12-26 16:10:01 +00:00
Added expression support for filters.
This commit is contained in:
@@ -318,7 +318,7 @@ export default class App extends React.Component {
|
||||
|
||||
onStyleChanged = (newStyle, save=true) => {
|
||||
|
||||
const errors = validate(newStyle, latest)
|
||||
const errors = validate(newStyle, latest) || [];
|
||||
const mappedErrors = errors.map(error => {
|
||||
const layerMatch = error.message.match(/layers\[(\d+)\]\.(?:(\S+)\.)?(\S+): (.*)/);
|
||||
if (layerMatch) {
|
||||
|
||||
Reference in New Issue
Block a user