|
@ -57,13 +57,11 @@ export class RuleComponent implements OnInit { |
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
.subscribe((settings: PortfolioReportRule['settings']) => { |
|
|
.subscribe((settings: PortfolioReportRule['settings']) => { |
|
|
if (settings) { |
|
|
if (settings) { |
|
|
const updatedSettings: UpdateUserSettingDto = { |
|
|
this.ruleUpdated.emit({ |
|
|
xRayRules: { |
|
|
xRayRules: { |
|
|
[rule.key]: settings |
|
|
[rule.key]: settings |
|
|
} |
|
|
} |
|
|
}; |
|
|
}); |
|
|
|
|
|
|
|
|
this.ruleUpdated.emit(updatedSettings); |
|
|
|
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|