Merge pull request #10036 from AllForNothing/tag-retention-bug

Fix tag-retention ui bug
This commit is contained in:
Will Sun 2019-11-29 10:07:13 +08:00 committed by GitHub
commit c275bbe1dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,14 +117,7 @@ export class TagRetentionComponent implements OnInit {
level: "project",
ref: this.projectId
};
let resolverData = this.route.snapshot.parent.data;
if (resolverData) {
let project = <Project>resolverData["projectResolver"];
if (project.metadata && project.metadata.retention_id) {
this.retentionId = project.metadata.retention_id;
}
}
this.getRetention();
this.refreshAfterCreatRetention();
this.getMetadata();
}
openConfirm(cron: string) {