optimize remote #3

This commit is contained in:
2026-03-09 18:41:43 +01:00
parent a46eeeee04
commit f7be5c082a
4 changed files with 41 additions and 28 deletions

View File

@@ -35,10 +35,13 @@ export class NewComponent implements OnInit, OnDestroy {
this.form.reset();
this.subs.push(
this.songService.list$().pipe(take(1)).subscribe(songs => {
const freeSongnumber = this.getFreeSongNumber(songs);
this.form.controls.number.setValue(freeSongnumber);
})
this.songService
.list$()
.pipe(take(1))
.subscribe(songs => {
const freeSongnumber = this.getFreeSongNumber(songs);
this.form.controls.number.setValue(freeSongnumber);
})
);
}