From e20afa164cd6aebfc2b7494718637b06e4687d1e Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Wed, 29 May 2024 14:59:13 +0300 Subject: [PATCH] initialized dashoboard's sort-by on modified --- .../recent-edited-activity/recent-edited-activity.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dmp-frontend/src/app/ui/dashboard/recent-edited-activity/recent-edited-activity.component.ts b/dmp-frontend/src/app/ui/dashboard/recent-edited-activity/recent-edited-activity.component.ts index fde20dd7f..df0f2d592 100644 --- a/dmp-frontend/src/app/ui/dashboard/recent-edited-activity/recent-edited-activity.component.ts +++ b/dmp-frontend/src/app/ui/dashboard/recent-edited-activity/recent-edited-activity.component.ts @@ -118,6 +118,8 @@ export class RecentEditedActivityComponent extends BaseComponent implements OnIn .pipe(takeUntil(this._destroyed)) .subscribe(x => this.refresh()); + if (!this.formGroup.get('order').value) this.formGroup.get('order').setValue(this.order.UpdatedAt); + this.refresh(); }