mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 07:42:47 +01:00
Fix bug not handling season data correctly
This commit is contained in:
@@ -751,10 +751,7 @@
|
||||
|
||||
// Use apiHelper to get seasons
|
||||
const response = await window.apiHelper.getQuery(`${ApiClient.serverAddress()}/Shows/${seriesId}/Seasons`);
|
||||
if (!response.data) {
|
||||
response.data = await response.dataPromise;
|
||||
}
|
||||
const seasonsData = response.data;
|
||||
const seasonsData = response.Items;
|
||||
|
||||
// Extract seasons from DOM
|
||||
const seasons = seasonsData.Items || seasonsData || [];
|
||||
|
||||
Reference in New Issue
Block a user