BUILD144
This commit is contained in:
@@ -13635,15 +13635,14 @@ function renderHockeyPenaltyDashboard(node, component, runtime) {
|
||||
|
||||
function runtimeVisibleTabs() {
|
||||
const standings = getByPath(state.data, "hockey.standings") || {};
|
||||
const schedule = getByPath(state.data, "hockey.schedule") || {};
|
||||
const teamSchedule = getByPath(state.data, "hockey.team_schedule") || {};
|
||||
const selectedGame = getByPath(state.data, "hockey.selected_game") || null;
|
||||
const selectedTournament = getByPath(state.data, "hockey.selected_tournament") || null;
|
||||
const hasSchedule = (Array.isArray(schedule.items) && schedule.items.length > 0)
|
||||
|| (Array.isArray(teamSchedule.items) && teamSchedule.items.length > 0);
|
||||
const visible = state.config.tabs.filter((tab) => {
|
||||
if (tab.id === "standings") return Boolean(standings.available && Array.isArray(standings.variants) && standings.variants.length);
|
||||
if (tab.id === "schedule") return hasSchedule;
|
||||
// BUILD144: Schedule is navigation, not a data-availability indicator.
|
||||
// Keep the tab visible even when the selected day has zero games or while
|
||||
// the schedule cache is still loading; the component shows its empty state.
|
||||
if (tab.id === "schedule") return true;
|
||||
if (tab.id === "shootout") return Boolean(selectedGame && String(selectedTournament?.stage_key || "").toLowerCase() === "regular");
|
||||
return true;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user