Only add 'toc' if not already defined
This commit is contained in:
		
							parent
							
								
									5e0de0065b
								
							
						
					
					
						commit
						fbfb97f71f
					
				| @ -39,7 +39,7 @@ function sortAndMergeYAMLFiles() { | ||||
|             if (item.stops.length > 0) { | ||||
|                 outputString += `  - code: "${item.code}"\n`; | ||||
|                 outputString += `    stops: [${item.stops.map(stop => `${stop}`).join(',')}]\n`; | ||||
|                 outputString += `    toc: "gw"\n`; | ||||
|                 outputString += `    toc: "${item.toc || "gw"}"\n`; | ||||
|             } | ||||
|         }); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user