Update compact-filter.component.ts
This commit is contained in:
		
							parent
							
								
									7f735dcada
								
							
						
					
					
						commit
						47e9fb92e3
					
				| @ -223,7 +223,11 @@ export class CompactFilterComponent implements OnInit, OnChanges, OnDestroy { | |||||||
|   } |   } | ||||||
|    |    | ||||||
|   ngOnDestroy(): void { |   ngOnDestroy(): void { | ||||||
|     // Component cleanup - nothing specific needed for now
 |     // Component cleanup - remove this filter from the filter service
 | ||||||
|  |     if (this.selectedFilter) { | ||||||
|  |       // Use the proper removeFilter method which handles both filter definition and state
 | ||||||
|  |       this.filterService.removeFilter(this.selectedFilter.id); | ||||||
|  |     } | ||||||
|   } |   } | ||||||
|    |    | ||||||
|   // Load available keys from API
 |   // Load available keys from API
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user