fix : after compelting of mjp,jkp,and tre it will return the raceno properly
This commit is contained in:
parent
213385e55f
commit
7c2323e2b2
@ -278,6 +278,17 @@ export class NavbarComponent implements OnInit, OnDestroy {
|
|||||||
this.currentPool = null;
|
this.currentPool = null;
|
||||||
this.multiLegBaseRaceIdx = 0;
|
this.multiLegBaseRaceIdx = 0;
|
||||||
this.currentLegRaceDisplay = '';
|
this.currentLegRaceDisplay = '';
|
||||||
|
|
||||||
|
// Reset selectedRace to the first open race (1 if no stops, or the running/open one if stops exist)
|
||||||
|
this.selectedRace = this.getOpenRaceStartingFrom(1);
|
||||||
|
this.sharedStateService.updateSharedData({
|
||||||
|
type: 'selectedRace',
|
||||||
|
value: this.selectedRace,
|
||||||
|
});
|
||||||
|
const electronAPI = (window as any).electronAPI;
|
||||||
|
if (electronAPI) {
|
||||||
|
electronAPI.syncSelectedRace(this.selectedRace);
|
||||||
|
}
|
||||||
this.updateEnabledHorseNumbers();
|
this.updateEnabledHorseNumbers();
|
||||||
}
|
}
|
||||||
if (data.type === 'selectedRace') {
|
if (data.type === 'selectedRace') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user