From a11adf8ad2dddf71b8fe9370cda846c8cc556864 Mon Sep 17 00:00:00 2001 From: nmemmert Date: Mon, 19 Oct 2026 11:37:35 -0400 Subject: [PATCH] Episodes: Browse Episodes defaults to the current series' season; v2.45.3 Co-Authored-By: Claude Sonnet 5.5 --- package.json | 2 +- src/App.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 07bff4d..ef38130 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "siteforge", "private": true, - "version": "2.45.2", + "version": "2.45.3", "type": "module", "scripts": { "dev": "vite", diff --git a/src/App.tsx b/src/App.tsx index 6d7ccd2..043c6e9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2241,7 +2241,9 @@ function EpisodesPage({ content }: { content: SiteContent }) { ) const { episodes, loading } = useAllEpisodes() const [query, setQuery] = useState('') - const [season, setSeason] = useState('all') + // Until a chip is picked, browse the current series' season (all episodes if none is set) + const [pickedSeason, setSeason] = useState(null) + const season = pickedSeason ?? (content.seriesSeason ? String(content.seriesSeason) : 'all') const [expanded, setExpanded] = useState(false) const [openKey, setOpenKey] = useState(null)