From d90513ff1ab143df67e8d1d3a5665bcba5276cad Mon Sep 17 00:00:00 2001 From: AllForNothing Date: Wed, 31 Jul 2019 17:43:07 +0800 Subject: [PATCH] fix bug for tag-retention Signed-off-by: AllForNothing --- .../app/project/tag-retention/add-rule/add-rule.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/portal/src/app/project/tag-retention/add-rule/add-rule.component.ts b/src/portal/src/app/project/tag-retention/add-rule/add-rule.component.ts index eeab93579..9ef601ad7 100644 --- a/src/portal/src/app/project/tag-retention/add-rule/add-rule.component.ts +++ b/src/portal/src/app/project/tag-retention/add-rule/add-rule.component.ts @@ -68,7 +68,7 @@ export class AddRuleComponent implements OnInit, OnDestroy { } set num(num) { - this.rule.params[this.template] = num; + this.rule.params[this.template] = parseInt(num, 10); } get repoSelect() {