forked from MapComplete/MapComplete
		
	chore: automated housekeeping...
This commit is contained in:
		
							parent
							
								
									612e71a4b6
								
							
						
					
					
						commit
						511d20eb34
					
				
					 245 changed files with 43884 additions and 8661 deletions
				
			
		|  | @ -198,8 +198,13 @@ export default class LayerConfig extends WithContextLoader { | |||
|                 throw context + ": Preset " + i + " tags are not an array" | ||||
|             } | ||||
| 
 | ||||
|             if (pr.tags.some(t => typeof t !== "string")) { | ||||
|                 throw context + ": Preset " + i + ": all tags should be a simple tag (thus: a string) which should also be uploadable. A non-string type is found" | ||||
|             if (pr.tags.some((t) => typeof t !== "string")) { | ||||
|                 throw ( | ||||
|                     context + | ||||
|                     ": Preset " + | ||||
|                     i + | ||||
|                     ": all tags should be a simple tag (thus: a string) which should also be uploadable. A non-string type is found" | ||||
|                 ) | ||||
|             } | ||||
| 
 | ||||
|             const config: PresetConfig = { | ||||
|  | @ -285,7 +290,9 @@ export default class LayerConfig extends WithContextLoader { | |||
|                     tr["rewrite"] === undefined | ||||
|             ) ?? [] | ||||
|         if (missingIds?.length > 0 && official) { | ||||
|             const msg = `Context: ${context}; Some tagRenderings of ${this.id} are missing an id: ${missingIds.map(x => JSON.stringify(x)).join(", ")} ` | ||||
|             const msg = `Context: ${context}; Some tagRenderings of ${ | ||||
|                 this.id | ||||
|             } are missing an id: ${missingIds.map((x) => JSON.stringify(x)).join(", ")} ` | ||||
|             console.error(msg) | ||||
|             throw msg | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue