forked from MapComplete/MapComplete
		
	Fix crash in studio
This commit is contained in:
		
							parent
							
								
									0a1c90be9e
								
							
						
					
					
						commit
						a3f204777a
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -28,6 +28,10 @@ | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   let configJson: Store<QuestionableTagRenderingConfigJson[]> = value.map((x) => { |   let configJson: Store<QuestionableTagRenderingConfigJson[]> = value.map((x) => { | ||||||
|  |     if(x === undefined){ | ||||||
|  |       console.log("No config found for ",path) | ||||||
|  |       return [] | ||||||
|  |     } | ||||||
|     if (typeof x === "string") { |     if (typeof x === "string") { | ||||||
|       return perId[x] |       return perId[x] | ||||||
|     } else { |     } else { | ||||||
|  | @ -38,6 +42,7 @@ | ||||||
|     if (!configs) { |     if (!configs) { | ||||||
|       return [{ error: "No configuartions found" }] |       return [{ error: "No configuartions found" }] | ||||||
|     } |     } | ||||||
|  |     console.log("Configs are", configs) | ||||||
|     return configs.map((config) => { |     return configs.map((config) => { | ||||||
|       if (config["builtin"]) { |       if (config["builtin"]) { | ||||||
|         let override = "" |         let override = "" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue