forked from MapComplete/MapComplete
		
	Improve typing
This commit is contained in:
		
							parent
							
								
									da8cbd8c00
								
							
						
					
					
						commit
						ee9646a176
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -18,10 +18,12 @@ export class UpdateLegacyLayer extends DesugaringStep<LayerConfigJson | string |
 | 
			
		|||
            // Reuse of an already existing layer; return as-is
 | 
			
		||||
            return {result: json, errors: [], warnings: []}
 | 
			
		||||
        }
 | 
			
		||||
        let config: any = {...json};
 | 
			
		||||
        let config  = {...json};
 | 
			
		||||
 | 
			
		||||
        if (config["overpassTags"]) {
 | 
			
		||||
            config.source = config.source ?? {}
 | 
			
		||||
            config.source = config.source ?? {
 | 
			
		||||
                osmTags: config["overpassTags"]
 | 
			
		||||
            }
 | 
			
		||||
            config.source.osmTags = config["overpassTags"]
 | 
			
		||||
            delete config["overpassTags"]
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue