@arsedizioni/ars-utils 19.2.12 → 19.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3415,18 +3415,21 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
|
|
|
3415
3415
|
this.filterParams.authors = [];
|
|
3416
3416
|
this.filterParams.type = null;
|
|
3417
3417
|
let authors = [];
|
|
3418
|
+
const sectors = (this.filterParams.sectors?.length ?? 0) > 0
|
|
3419
|
+
? this.filterParams.sectors
|
|
3420
|
+
: this.sectors();
|
|
3418
3421
|
ClipperAuthors.forEach(n => {
|
|
3419
|
-
if (
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
+
if (sectors &&
|
|
3423
|
+
sectors.length > 0 &&
|
|
3424
|
+
sectors.findIndex(x => x.value === n.sectorId) !== -1) {
|
|
3422
3425
|
authors.push(n);
|
|
3423
3426
|
}
|
|
3424
3427
|
});
|
|
3425
3428
|
let types = [];
|
|
3426
3429
|
ClipperSectorTypes.forEach(n => {
|
|
3427
|
-
if (
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
+
if (sectors &&
|
|
3431
|
+
sectors.length > 0 &&
|
|
3432
|
+
sectors.findIndex(x => x.value === n.parentValue) !== -1) {
|
|
3430
3433
|
types.push(n);
|
|
3431
3434
|
}
|
|
3432
3435
|
});
|