[ACA-2264] fix loading on search (#1011)

- do nothing on null built query
This commit is contained in:
Suzana Dirla 2019-03-12 14:24:27 +02:00 committed by Denys Vuika
parent 8045e17c28
commit da65e59b8e

View File

@ -109,9 +109,11 @@ export class SearchResultsComponent extends PageComponent implements OnInit {
this.sorting = this.getSorting();
this.subscriptions.push(
this.queryBuilder.updated.subscribe(() => {
this.queryBuilder.updated.subscribe(query => {
if (query) {
this.sorting = this.getSorting();
this.isLoading = true;
}
}),
this.queryBuilder.executed.subscribe(data => {