mirror of
https://github.com/maputnik/editor.git
synced 2026-02-24 13:30:00 +00:00
Correctly load previously saved style
This commit is contained in:
@@ -27,7 +27,6 @@ function fromJSON(jsonStyle) {
|
||||
|
||||
function ensureHasId(style) {
|
||||
if(style.has('id')) return style
|
||||
console.log('has no id', style.toJS())
|
||||
return style.set('id', Math.random().toString(36).substr(2, 9))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user