fix lag
This commit is contained in:
@@ -509,15 +509,10 @@ export function getEventTeams(event, { normalizeRaceTeam }) {
|
||||
|
||||
|
||||
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);
|
||||
if (scopedDrivers.length) {
|
||||
return { drivers: scopedDrivers, fallback: false };
|
||||
}
|
||||
return { drivers: [], fallback: false };
|
||||
return {
|
||||
drivers: Array.isArray(state?.drivers) ? [...state.drivers] : [],
|
||||
fallback: false,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user