Fix test: also load if no initial hash is given

This commit is contained in:
Pieter Vander Vennet 2024-04-30 17:54:22 +02:00
parent dff3827144
commit 57a531f292

View file

@ -70,7 +70,7 @@ export default class InitialMapPositioning {
})
this.useTerrain = new ImmutableStore<boolean>(layoutToUse.enableTerrain)
if(initialHash.match(/^(node|way|relation)\/[0-9]+$/)){
if(initialHash?.match(/^(node|way|relation)\/[0-9]+$/)){
const [type, id] = initialHash.split("/")
OsmObjectDownloader.RawDownloadObjectAsync(type, Number(id), Constants.osmAuthConfig.url+"/").then(osmObject => {
if(osmObject === "deleted"){