fix(console): reset events filter to initial values (#7037)

This commit is contained in:
Elio Bischof 2023-12-07 13:12:21 +01:00 committed by GitHub
parent 9da4abd459
commit 3842319d07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,8 @@ export class FilterEventsComponent implements OnInit {
eventTypesList: new FormControl<EventType.AsObject[]>([]),
});
private initialValues = this.form.getRawValue();
constructor(
private adminService: AdminService,
private toast: ToastService,
@ -172,6 +174,7 @@ export class FilterEventsComponent implements OnInit {
public reset(): void {
this.form.reset();
this.form.setValue(this.initialValues);
this.emitChange();
}