Browse Source

Refactoring

pull/3826/head
Thomas Kaul 11 months ago
parent
commit
9ccfb4b893
  1. 6
      apps/client/src/app/components/rule/rule.component.ts

6
apps/client/src/app/components/rule/rule.component.ts

@ -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);
} }
}); });
} }

Loading…
Cancel
Save