Fix bug with map quality levels not loading on peers

This commit is contained in:
Mitchell McCaffrey 2020-07-17 17:03:47 +10:00
parent 08214cd05c
commit 5ba4817398

View File

@ -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];
}
}