forked from MapComplete/MapComplete
		
	Fix: don't crash if no home location is set and the hotkey is triggered
This commit is contained in:
		
							parent
							
								
									c1288f0ed2
								
							
						
					
					
						commit
						991925ba35
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -234,6 +234,7 @@ export class UserMapFeatureswitchState extends WithUserRelatedState { | |||
|                 const home = this.userRelatedState.osmConnection.userDetails.data?.home | ||||
|                 if (!home) { | ||||
|                     console.log("No home location set") | ||||
|                     return | ||||
|                 } | ||||
|                 this.mapProperties.location.set(home) | ||||
|             } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue