Filter components before merging tools.
This commit is contained in:
		
							parent
							
								
									de27cb0365
								
							
						
					
					
						commit
						5343143902
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -193,6 +193,8 @@ def contextFor(targetSpec: str, props: Props) -> Context: | ||||||
| 
 | 
 | ||||||
|     target = loadTarget(targetEls[0]) |     target = loadTarget(targetEls[0]) | ||||||
|     components = loadAllComponents() |     components = loadAllComponents() | ||||||
|  |     components = filterDisabled(components, target) | ||||||
|  | 
 | ||||||
|     tools: Tools = {} |     tools: Tools = {} | ||||||
| 
 | 
 | ||||||
|     for toolSpec in target.tools: |     for toolSpec in target.tools: | ||||||
|  | @ -216,7 +218,6 @@ def contextFor(targetSpec: str, props: Props) -> Context: | ||||||
| 
 | 
 | ||||||
|             tools[toolSpec].args += tool.args |             tools[toolSpec].args += tool.args | ||||||
| 
 | 
 | ||||||
|     components = filterDisabled(components, target) |  | ||||||
|     instances = cast(list[ComponentInstance], list(filter(lambda e: e != None, map(lambda c: instanciate( |     instances = cast(list[ComponentInstance], list(filter(lambda e: e != None, map(lambda c: instanciate( | ||||||
|         c.id, components, target), components)))) |         c.id, components, target), components)))) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue