mirror of
https://github.com/BreizhHardware/Jellystat.git
synced 2026-01-18 16:27:20 +01:00
Fix for session.filter error #137
This commit is contained in:
@@ -329,7 +329,7 @@ class JellyfinAPI {
|
||||
"X-MediaBrowser-Token": this.config.JF_API_KEY,
|
||||
},
|
||||
});
|
||||
return response.data
|
||||
return response.data && Array.isArray(response.data) ? response.data : [];
|
||||
} catch (error) {
|
||||
this.#errorHandler(error);
|
||||
return [];
|
||||
|
||||
Reference in New Issue
Block a user