Skip to content

Commit

Permalink
remove unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
LiWeiYeh committed Dec 22, 2022
1 parent 9e5543d commit cadc515
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,16 @@ export class AtomicAlphanumericComponent extends BaseAtomicComponent<string> imp
super.ngOnInit();
this.formControl = new FormControl(this.data[0], { nonNullable: false, updateOn: 'blur' });

this.formControl.valueChanges.subscribe(
(x) =>
this.resource
.patch([
{
op: 'replace',
path: this.propertyName, // FIXME: this must be relative to path of this.resource
value: x,
},
])
.subscribe(),
// .subscribe(() => this.resource.data$.subscribe((x: any) => console.log(x))),
this.formControl.valueChanges.subscribe((x) =>
this.resource
.patch([
{
op: 'replace',
path: this.propertyName, // FIXME: this must be relative to path of this.resource
value: x,
},
])
.subscribe(),
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,16 @@ export class AtomicBigalphanumericComponent extends BaseAtomicComponent<string>
super.ngOnInit();
this.formControl = new FormControl(this.data[0], { nonNullable: false, updateOn: 'blur' });

this.formControl.valueChanges.subscribe(
(x) =>
this.resource
.patch([
{
op: 'replace',
path: this.propertyName, // FIXME: this must be relative to path of this.resource
value: x,
},
])
.subscribe(),
// .subscribe(() => this.resource.data$.subscribe((x: any) => console.log(x))),
this.formControl.valueChanges.subscribe((x) =>
this.resource
.patch([
{
op: 'replace',
path: this.propertyName, // FIXME: this must be relative to path of this.resource
value: x,
},
])
.subscribe(),
);
}
}

0 comments on commit cadc515

Please sign in to comment.