fix(stalker): reset search phrase after cmp destroy

This commit is contained in:
4gray committed 2024-08-24 18:38:35 +02:00
1 parent 6f4ed6f0de
commit c8e3e48a96
1 file changed
+1
@@ -623,6 +623,7 @@ export class StalkerMainContainerComponent implements OnInit {
}
ngOnDestroy() {
this.portalStore.setSearchPhrase('');
if (this.dataService.isElectron) {
this.commandsList.forEach((command) =>
this.dataService.removeAllListeners(command.id)