From dbd65fd94aede15ba644f59ee8bf3bcb714cb41e Mon Sep 17 00:00:00 2001 From: sshijun Date: Thu, 28 Nov 2019 17:29:06 +0800 Subject: [PATCH] Fix tag-retention ui bug Signed-off-by: sshijun --- .../app/project/tag-retention/tag-retention.component.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/portal/src/app/project/tag-retention/tag-retention.component.ts b/src/portal/src/app/project/tag-retention/tag-retention.component.ts index 7687c735a..bc7c8fd9f 100644 --- a/src/portal/src/app/project/tag-retention/tag-retention.component.ts +++ b/src/portal/src/app/project/tag-retention/tag-retention.component.ts @@ -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 = resolverData["projectResolver"]; - if (project.metadata && project.metadata.retention_id) { - this.retentionId = project.metadata.retention_id; - } - } - this.getRetention(); + this.refreshAfterCreatRetention(); this.getMetadata(); } openConfirm(cron: string) {