Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: policy rules will be empty after status changed (#3022)
ecmadao9060b001ebb4
diff --git a/frontend/src/views/SettingWorkspaceSQLReviewDetail.vue b/frontend/src/views/SettingWorkspaceSQLReviewDetail.vueindex 191e150537..2295af69cb 100644--- a/frontend/src/views/SettingWorkspaceSQLReviewDetail.vue+++ b/frontend/src/views/SettingWorkspaceSQLReviewDetail.vue@@ -265,22 +265,21 @@ const reviewPolicy = computed((): SQLReviewPolicy => {);});-const ruleTemplateMap: Map<RuleType, RuleTemplate> = TEMPLATE_LIST.reduce(- (map, template) => {- for (const rule of template.ruleList) {- map.set(rule.type, rule);- }- return map;- },- new Map<RuleType, RuleTemplate>()-);-const selectedRuleList = computed((): RuleTemplate[] => {if (!reviewPolicy.value) {return [];}const ruleTemplateList: RuleTemplate[] = [];+ const ruleTemplateMap: Map<RuleType, RuleTemplate> = TEMPLATE_LIST.reduce(+ (map, template) => {+ for (const rule of template.ruleList) {+ map.set(rule.type, rule);+ }+ return map;+ },+ new Map<RuleType, RuleTemplate>()+ );for (const policyRule of reviewPolicy.value.ruleList) {const rule = ruleTemplateMap.get(policyRule.type);