forked from MapComplete/MapComplete
		
	Studio: cleanup 'null'-layers before generating errors
This commit is contained in:
		
							parent
							
								
									d2e7bac775
								
							
						
					
					
						commit
						181965efd9
					
				
					 2 changed files with 11 additions and 0 deletions
				
			
		|  | @ -508,6 +508,9 @@ export class EditThemeState extends EditJsonState<LayoutConfigJson> { | |||
|         } | ||||
|         const prepare = this.buildValidation(state) | ||||
|         const context = ConversionContext.construct([], ["prepare"]) | ||||
|         if(configuration.layers){ | ||||
|             Utils.NoNullInplace(configuration.layers) | ||||
|         } | ||||
|         try { | ||||
|             prepare.convert(<LayoutConfigJson>configuration, context) | ||||
|         } catch (e) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue