This commit is contained in:
Sofia Papacharalampous 2024-06-07 14:33:31 +03:00
parent 30b4537a40
commit 8a8aa40ac9
1 changed files with 3 additions and 2 deletions

View File

@ -117,12 +117,13 @@ export class RecentEditedActivityComponent extends BaseComponent implements OnIn
console.log('valueChanges');
this.refresh()
});
if (!this.formGroup.get('order').value) this.formGroup.get('order').setValue(this.order.UpdatedAt);
this.formGroup.get('order').valueChanges
.pipe(takeUntil(this._destroyed))
.subscribe(x => this.refresh());
if (!this.formGroup.get('order').value) this.formGroup.get('order').setValue(this.order.UpdatedAt);
this.refresh();
}