From 5ba48173984e9dcebbf50a6ccec724f01bff76f5 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Fri, 17 Jul 2020 17:03:47 +1000 Subject: [PATCH] Fix bug with map quality levels not loading on peers --- src/components/map/MapInteraction.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/map/MapInteraction.js b/src/components/map/MapInteraction.js index 32e4723..671f5a9 100644 --- a/src/components/map/MapInteraction.js +++ b/src/components/map/MapInteraction.js @@ -32,7 +32,11 @@ function MapInteraction({ }) { let mapSourceMap = map; if (map && map.type === "file") { - if (map.resolutions && map.quality !== "original") { + if ( + map.resolutions && + map.quality !== "original" && + map.resolutions[map.quality] + ) { mapSourceMap = map.resolutions[map.quality]; } }