mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-25 18:20:31 -06:00
Don't make a search when the field is changed and the value is empty
This commit is contained in:
parent
c6de16eb1d
commit
641f98b2ee
@ -51,7 +51,10 @@ export class SearchComponent implements OnInit {
|
||||
$event.stopPropagation();
|
||||
|
||||
this.searchCriterias.field = choice;
|
||||
this.doSearch();
|
||||
|
||||
if (this.searchCriterias.value !== '') {
|
||||
this.doSearch();
|
||||
}
|
||||
}
|
||||
|
||||
doSearch() {
|
||||
|
Loading…
Reference in New Issue
Block a user