Fix bug with sending low resolution maps
This commit is contained in:
parent
00ba1a5fc1
commit
d83c6e80fb
@ -19,9 +19,12 @@ function MapTile({
|
||||
}) {
|
||||
const [isMapTileMenuOpen, setIsTileMenuOpen] = useState(false);
|
||||
const isDefault = map.type === "default";
|
||||
|
||||
const mapSource = useDataSource(
|
||||
isDefault ? map : map.resolutions.low ? map.resolutions.low : map,
|
||||
isDefault
|
||||
? map
|
||||
: map.resolutions && map.resolutions.low
|
||||
? map.resolutions.low
|
||||
: map,
|
||||
defaultMapSources,
|
||||
unknownSource
|
||||
);
|
||||
|
@ -269,7 +269,11 @@ function NetworkedMapAndTokens({ session }) {
|
||||
replyWithFile(map.resolutions.ultra.file);
|
||||
break;
|
||||
case "original":
|
||||
replyWithFile(map.resolutions.medium.file);
|
||||
if (map.resolutions.medium) {
|
||||
replyWithFile(map.resolutions.medium.file);
|
||||
} else if (map.resolutions.low) {
|
||||
replyWithFile(map.resolutions.low.file);
|
||||
}
|
||||
replyWithFile(map.file);
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user