forked from MapComplete/MapComplete
		
	More work on splitting roads, WIP; refactoring tests
This commit is contained in:
		
							parent
							
								
									e374bb355c
								
							
						
					
					
						commit
						1f93923820
					
				
					 62 changed files with 1163 additions and 823 deletions
				
			
		|  | @ -159,7 +159,7 @@ export default class DeleteAction { | |||
|                     canBeDeleted: false, | ||||
|                     reason: t.notEnoughExperience | ||||
|                 }) | ||||
|                 return; | ||||
|                 return true; // unregister this caller!
 | ||||
|             } | ||||
| 
 | ||||
|             if (!useTheInternet) { | ||||
|  | @ -167,13 +167,14 @@ export default class DeleteAction { | |||
|             } | ||||
| 
 | ||||
|             // All right! We have arrived at a point that we should query OSM again to check that the point isn't a part of ways or relations
 | ||||
|             OsmObject.DownloadReferencingRelations(id).addCallbackAndRunD(rels => { | ||||
|             OsmObject.DownloadReferencingRelations(id).then(rels => { | ||||
|                 hasRelations.setData(rels.length > 0) | ||||
|             }) | ||||
| 
 | ||||
|             OsmObject.DownloadReferencingWays(id).addCallbackAndRunD(ways => { | ||||
|             OsmObject.DownloadReferencingWays(id).then(ways => { | ||||
|                 hasWays.setData(ways.length > 0) | ||||
|             }) | ||||
|             return true; // unregister to only run once
 | ||||
|         }) | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue