refactor: enable full sort capabilites on search

This commit is contained in:
Rainer Killinger
2021-09-21 14:04:47 +02:00
committed by Jovan Krunić
parent 03084b1c96
commit a1bf950c88
5 changed files with 46 additions and 31 deletions

View File

@@ -98,7 +98,7 @@ export class SearchPageComponent implements OnInit, OnDestroy {
/**
* Api query sorting
*/
sortQuery: SCSearchSort | undefined;
sortQuery: SCSearchSort[] | undefined;
/**
* Array of all subscriptions to Observables
@@ -148,7 +148,7 @@ export class SearchPageComponent implements OnInit, OnDestroy {
if (this.sortQuery) {
// add query sorting
searchOptions.sort = [this.sortQuery];
searchOptions.sort = this.sortQuery;
}
for (const filter of [this.forcedFilter, this.filterQuery]) {