New Angular based web version #1
@@ -81,7 +81,8 @@ export class EditEntryComponent implements OnInit {
|
|||||||
.getAll()
|
.getAll()
|
||||||
.pipe(
|
.pipe(
|
||||||
takeUntilDestroyed(),
|
takeUntilDestroyed(),
|
||||||
map(response => response.cars),
|
map(response => response.cars
|
||||||
|
.sort((a, b) => a.name.localeCompare(b.name))),
|
||||||
tap(cars => {
|
tap(cars => {
|
||||||
const selectedCarId = this.selectedCarService.getSelectedCarId();
|
const selectedCarId = this.selectedCarService.getSelectedCarId();
|
||||||
|
|
||||||
|
|||||||
@@ -99,6 +99,8 @@ export class EntriesComponent implements OnInit {
|
|||||||
this.cars$ = this.entriesOverviewService.getCars()
|
this.cars$ = this.entriesOverviewService.getCars()
|
||||||
.pipe(
|
.pipe(
|
||||||
takeUntilDestroyed(),
|
takeUntilDestroyed(),
|
||||||
|
map((cars) => cars
|
||||||
|
.sort((a, b) => a.name.localeCompare(b.name))),
|
||||||
tap((cars) => {
|
tap((cars) => {
|
||||||
const selectedCarId = this.selectedCarService.getSelectedCarId();
|
const selectedCarId = this.selectedCarService.getSelectedCarId();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user