Fixes error of mismatch model on client and server
This commit is contained in:
parent
33ea9ce2ed
commit
9b837a27a8
|
@ -2,11 +2,12 @@ import { RecentActivityModel } from './recent-activity.model';
|
||||||
import { RecentDatasetModel } from './recent-dataset-activity.model';
|
import { RecentDatasetModel } from './recent-dataset-activity.model';
|
||||||
import { DmpAssociatedProfileModel } from '../dmp-profile/dmp-associated-profile';
|
import { DmpAssociatedProfileModel } from '../dmp-profile/dmp-associated-profile';
|
||||||
import { UserInfoListingModel } from '../user/user-info-listing';
|
import { UserInfoListingModel } from '../user/user-info-listing';
|
||||||
|
import { DatasetUrlListing } from '../dataset/dataset-url-listing';
|
||||||
|
|
||||||
export class RecentDmpModel extends RecentActivityModel {
|
export class RecentDmpModel extends RecentActivityModel {
|
||||||
doi: String;
|
doi: String;
|
||||||
extraProperties: Map<String, any>;
|
extraProperties: Map<String, any>;
|
||||||
datasets: any[];
|
datasets: DatasetUrlListing[];
|
||||||
associatedProfiles: DmpAssociatedProfileModel[];
|
associatedProfiles: DmpAssociatedProfileModel[];
|
||||||
organisations: String;
|
organisations: String;
|
||||||
groupId: string;
|
groupId: string;
|
||||||
|
|
|
@ -32,6 +32,7 @@ import { DatasetCopyDialogueComponent } from '@app/ui/dataset/dataset-wizard/dat
|
||||||
import { RecentActivityOrder } from '@app/core/common/enum/recent-activity-order';
|
import { RecentActivityOrder } from '@app/core/common/enum/recent-activity-order';
|
||||||
import { Location } from '@angular/common';
|
import { Location } from '@angular/common';
|
||||||
import { LockService } from '@app/core/services/lock/lock.service';
|
import { LockService } from '@app/core/services/lock/lock.service';
|
||||||
|
import { DatasetUrlListing } from '@app/core/model/dataset/dataset-url-listing';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-recent-edited-activity',
|
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;
|
return activity.datasets;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue