fix
This commit is contained in:
@@ -509,6 +509,10 @@ export function getEventTeams(event, { normalizeRaceTeam }) {
|
|||||||
|
|
||||||
|
|
||||||
export function getTeamDriverPool(event, { getEventDrivers, state }) {
|
export function getTeamDriverPool(event, { getEventDrivers, state }) {
|
||||||
|
const classDrivers = state.drivers.filter((driver) => !event?.classId || driver.classId === event.classId);
|
||||||
|
if (classDrivers.length) {
|
||||||
|
return { drivers: classDrivers, fallback: false };
|
||||||
|
}
|
||||||
const scopedDrivers = getEventDrivers(event);
|
const scopedDrivers = getEventDrivers(event);
|
||||||
if (scopedDrivers.length) {
|
if (scopedDrivers.length) {
|
||||||
return { drivers: scopedDrivers, fallback: false };
|
return { drivers: scopedDrivers, fallback: false };
|
||||||
@@ -778,4 +782,3 @@ export function applyBumpsForRace(event, { buildFinalStandings, getSessionsForEv
|
|||||||
|
|
||||||
return applied;
|
return applied;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user