Load icons explicit and implement save

This commit is contained in:
lukasmartinelli
2016-09-10 14:47:06 +02:00
parent ab79c632b0
commit d132c09afc
5 changed files with 47 additions and 10 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ export class StyleStore {
// Find the last edited style
latestStyle() {
if(this.mapStyles.length == 0) {
return Immutable.fromJS(emptyStyle)
return ensureOptionalStyleProps(Immutable.fromJS(emptyStyle))
}
const styleId = window.localStorage.getItem(storage.keys.latest)
const styleItem = window.localStorage.getItem(styleKey(styleId))