File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -90,13 +90,14 @@ export function normalizeDNRRules(rules, ruleIds) {
90
90
? rules . filter ( rule => ruleIds . includes ( rule . id ) )
91
91
: rules ;
92
92
selectedRules . forEach ( rule => {
93
- if ( Array . isArray ( rule . domains ) ) {
94
- rules . initiatorDomains = rule . domains ;
95
- delete rule . domains ;
93
+ const { condition } = rule ;
94
+ if ( Array . isArray ( condition . domains ) ) {
95
+ condition . initiatorDomains = condition . domains ;
96
+ delete condition . domains ;
96
97
}
97
- if ( Array . isArray ( rule . excludedDomains ) ) {
98
- rules . excludedInitiatorDomains = rule . excludedDomains ;
99
- delete rule . excludedDomains ;
98
+ if ( Array . isArray ( condition . excludedDomains ) ) {
99
+ condition . excludedInitiatorDomains = condition . excludedDomains ;
100
+ delete condition . excludedDomains ;
100
101
}
101
102
} ) ;
102
103
return selectedRules ;
You can’t perform that action at this time.
0 commit comments