Fix test: also load if no initial hash is given
This commit is contained in:
parent
dff3827144
commit
57a531f292
1 changed files with 1 additions and 1 deletions
|
@ -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"){
|
||||
|
|
Loading…
Reference in a new issue