[AAE-4661] Fix search results are still displayed when search term ge… (#6707)

* [AAE-4661] Fix search results are still displayed when search term gets deleted

* Fix unit tests
This commit is contained in:
arditdomi
2021-02-22 20:16:26 +00:00
committed by GitHub
parent 88e0d016e3
commit 4a54e8523b
2 changed files with 19 additions and 1 deletions

View File

@@ -304,7 +304,9 @@ export class ContentNodeSelectorPanelComponent implements OnInit, OnDestroy {
this.queryBuilderService.executed
.pipe(takeUntil(this.onDestroy$))
.subscribe( (results: NodePaging) => {
this.showSearchResults(results);
if (this.searchTerm) {
this.showSearchResults(results);
}
});
this.userPreferencesService