Update compact-filter.component.ts

This commit is contained in:
string 2025-10-30 12:46:39 +05:30
parent 7f735dcada
commit 47e9fb92e3

View File

@ -223,7 +223,11 @@ export class CompactFilterComponent implements OnInit, OnChanges, OnDestroy {
}
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