Interactive interface for browsing global, full-resolution satellite imagery
fix palette permalink serializing #1576
Benjamin King75a5147c8dac
diff --git a/web/js/modules/layers/util.js b/web/js/modules/layers/util.jsindex 3f1a1ef16..dc7538958 100644--- a/web/js/modules/layers/util.js+++ b/web/js/modules/layers/util.js@@ -72,9 +72,11 @@ function serializeLayers(layers, models, groupStr) {value: def.opacity});}- if (!isEmpty(def.custom)) {- let def1 = models.palettes.get(def.id, undefined, groupStr);-+ let def1 =+ def.id && def.palette+ ? models.palettes.get(def.id, undefined, groupStr)+ : undefined;+ if (def1) {if (def1.custom) {item.attributes.push({id: 'palette',