fix: bail to home when season list is empty on title card

This commit is contained in:
2026-06-11 22:48:17 +09:00
parent 9fe1910d12
commit f97b4faad7
+5
View File
@@ -53,6 +53,11 @@ class _SeasonTitleScreenState extends ConsumerState<SeasonTitleScreen> {
backgroundColor: Color(0xFF0E1430), body: SizedBox()); backgroundColor: Color(0xFF0E1430), body: SizedBox());
}, },
data: (list) { data: (list) {
if (list.isEmpty) {
WidgetsBinding.instance.addPostFrameCallback((_) => _go());
return const Scaffold(
backgroundColor: Color(0xFF0E1430), body: SizedBox());
}
if (!_dataTimerArmed) { if (!_dataTimerArmed) {
_dataTimerArmed = true; _dataTimerArmed = true;
_auto?.cancel(); _auto?.cancel();