Episodes: Browse Episodes defaults to the current series' season; v2.45.3
Publish Container / build (push) Successful in 16m53s
Publish Container / build (push) Successful in 16m53s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e2cd66386b
commit
a11adf8ad2
2 files changed
+4
-2
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "siteforge",
|
"name": "siteforge",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "2.45.2",
|
"version": "2.45.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
+3
-1
@@ -2241,7 +2241,9 @@ function EpisodesPage({ content }: { content: SiteContent }) {
|
|||||||
)
|
)
|
||||||
const { episodes, loading } = useAllEpisodes()
|
const { episodes, loading } = useAllEpisodes()
|
||||||
const [query, setQuery] = useState('')
|
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<string | null>(null)
|
||||||
|
const season = pickedSeason ?? (content.seriesSeason ? String(content.seriesSeason) : 'all')
|
||||||
const [expanded, setExpanded] = useState(false)
|
const [expanded, setExpanded] = useState(false)
|
||||||
const [openKey, setOpenKey] = useState<string | null>(null)
|
const [openKey, setOpenKey] = useState<string | null>(null)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user