Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

make sure opacity is a number #1949

Benjamin King55b3f685f896
diff --git a/web/js/modules/layers/actions.js b/web/js/modules/layers/actions.js
index de15f7b51..4723cd853 100644
--- a/web/js/modules/layers/actions.js
+++ b/web/js/modules/layers/actions.js
@@ -180,7 +180,7 @@ export function setOpacity(id, opacity) {
type: UPDATE_OPACITY,
id,
index,
- opacity,
+ opacity: Number(opacity),
activeString,
});
};