Fixes error of mismatch model on client and server

This commit is contained in:
apapachristou 2020-08-03 13:22:18 +03:00
parent 33ea9ce2ed
commit 9b837a27a8
2 changed files with 4 additions and 2 deletions

View File

@ -2,11 +2,12 @@ import { RecentActivityModel } from './recent-activity.model';
import { RecentDatasetModel } from './recent-dataset-activity.model';
import { DmpAssociatedProfileModel } from '../dmp-profile/dmp-associated-profile';
import { UserInfoListingModel } from '../user/user-info-listing';
import { DatasetUrlListing } from '../dataset/dataset-url-listing';
export class RecentDmpModel extends RecentActivityModel {
doi: String;
extraProperties: Map<String, any>;
datasets: any[];
datasets: DatasetUrlListing[];
associatedProfiles: DmpAssociatedProfileModel[];
organisations: String;
groupId: string;

View File

@ -32,6 +32,7 @@ import { DatasetCopyDialogueComponent } from '@app/ui/dataset/dataset-wizard/dat
import { RecentActivityOrder } from '@app/core/common/enum/recent-activity-order';
import { Location } from '@angular/common';
import { LockService } from '@app/core/services/lock/lock.service';
import { DatasetUrlListing } from '@app/core/model/dataset/dataset-url-listing';
@Component({
selector: 'app-recent-edited-activity',
@ -127,7 +128,7 @@ export class RecentEditedActivityComponent extends BaseComponent implements OnIn
}
}
getDatasets(activity: RecentDmpModel): RecentDatasetModel[] {
getDatasets(activity: RecentDmpModel): DatasetUrlListing[] {
return activity.datasets;
}