Skip to content

Commit

Permalink
cleanup [ci:force]
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika committed Jan 10, 2025
1 parent d203910 commit 8b58bb6
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,19 @@ export class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent imp
getFilters(appName: string): void {
this.filters$ = this.taskFilterCloudService.getTaskListFilters(appName);

this.filters$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(
(res) => {
this.filters$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe({
next: (res) => {
this.resetFilter();
this.filters = res || [];
this.initFilterCounters();
this.selectFilterAndEmit(this.filterParam);
this.updateFilterCounters();
this.success.emit(res);
},
(err: any) => {
error: (err) => {
this.error.emit(err);
}
);
});
}

/**
Expand Down Expand Up @@ -160,8 +160,8 @@ export class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent imp
this.taskFilterCloudService
.getTaskNotificationSubscription(this.appName)
.pipe(debounceTime(1000))
.subscribe((result: TaskCloudEngineEvent[]) => {
result.map((taskEvent: TaskCloudEngineEvent) => {
.subscribe((result) => {
result.forEach((taskEvent) => {
this.checkFilterCounter(taskEvent.entity);
});

Expand All @@ -172,7 +172,7 @@ export class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent imp
}

checkFilterCounter(filterNotification: TaskDetailsCloudModel) {
this.filters.map((filter) => {
this.filters.forEach((filter) => {
if (this.isFilterPresent(filter, filterNotification)) {
this.addToUpdatedCounters(filter.key);
}
Expand Down Expand Up @@ -234,6 +234,7 @@ export class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent imp
}

/**
* @deprecated unused method
* Select as default task filter the first in the list
*/
public selectDefaultTaskFilter() {
Expand Down

0 comments on commit 8b58bb6

Please sign in to comment.