mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-19 07:53:02 +00:00
Lint errors fixed
This commit is contained in:
@@ -15,7 +15,10 @@ import {
|
|||||||
BehaviorSubject,
|
BehaviorSubject,
|
||||||
Observable,
|
Observable,
|
||||||
} from 'rxjs';
|
} from 'rxjs';
|
||||||
import { map, filter } from 'rxjs/operators';
|
import {
|
||||||
|
filter,
|
||||||
|
map,
|
||||||
|
} from 'rxjs/operators';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
APP_CONFIG,
|
APP_CONFIG,
|
||||||
@@ -162,7 +165,7 @@ export class SearchFiltersComponent implements OnInit {
|
|||||||
// We haven't reached the total yet, proceed with increment
|
// We haven't reached the total yet, proceed with increment
|
||||||
return {
|
return {
|
||||||
shouldIncrement: true,
|
shouldIncrement: true,
|
||||||
totalFilters
|
totalFilters,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return { shouldIncrement: false };
|
return { shouldIncrement: false };
|
||||||
@@ -180,14 +183,14 @@ export class SearchFiltersComponent implements OnInit {
|
|||||||
// Create new counter entry
|
// Create new counter entry
|
||||||
this.currentFiltersComputed.push({
|
this.currentFiltersComputed.push({
|
||||||
configuration: this.currentConfiguration,
|
configuration: this.currentConfiguration,
|
||||||
filtersComputed: 1
|
filtersComputed: 1,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pass along the total and updated count
|
// Pass along the total and updated count
|
||||||
return {
|
return {
|
||||||
totalFilters: result.totalFilters,
|
totalFilters: result.totalFilters,
|
||||||
currentComputed: this.getCurrentFiltersComputed(this.currentConfiguration)
|
currentComputed: this.getCurrentFiltersComputed(this.currentConfiguration),
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
// Check if we've reached the total after incrementing
|
// Check if we've reached the total after incrementing
|
||||||
@@ -197,7 +200,7 @@ export class SearchFiltersComponent implements OnInit {
|
|||||||
this.updateFinalFiltersComputed(this.currentConfiguration, result.currentComputed);
|
this.updateFinalFiltersComputed(this.currentConfiguration, result.currentComputed);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
})
|
}),
|
||||||
).subscribe().unsubscribe(); // Execute the pipeline and immediately unsubscribe
|
).subscribe().unsubscribe(); // Execute the pipeline and immediately unsubscribe
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -209,7 +212,7 @@ export class SearchFiltersComponent implements OnInit {
|
|||||||
*/
|
*/
|
||||||
private findConfigInCurrentFilters(configuration: string) {
|
private findConfigInCurrentFilters(configuration: string) {
|
||||||
return this.currentFiltersComputed.find(
|
return this.currentFiltersComputed.find(
|
||||||
(configFilter) => configFilter.configuration === configuration
|
(configFilter) => configFilter.configuration === configuration,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -220,7 +223,7 @@ export class SearchFiltersComponent implements OnInit {
|
|||||||
*/
|
*/
|
||||||
private findConfigInFinalFilters(configuration: string) {
|
private findConfigInFinalFilters(configuration: string) {
|
||||||
return this.finalFiltersComputed.find(
|
return this.finalFiltersComputed.find(
|
||||||
(configFilter) => configFilter.configuration === configuration
|
(configFilter) => configFilter.configuration === configuration,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -237,7 +240,7 @@ export class SearchFiltersComponent implements OnInit {
|
|||||||
} else {
|
} else {
|
||||||
this.finalFiltersComputed.push({
|
this.finalFiltersComputed.push({
|
||||||
configuration,
|
configuration,
|
||||||
filtersComputed: count
|
filtersComputed: count,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user