mirror of
https://github.com/BreizhHardware/Jellystat.git
synced 2026-01-18 16:27:20 +01:00
fix for IS_Jellyfin flag condition looking at incorrect field in config
This commit is contained in:
@@ -159,7 +159,7 @@ function Activity() {
|
||||
(libraryFilters.includes(item.ParentId) || item.ParentId == null) &&
|
||||
(streamTypeFilter == "All"
|
||||
? true
|
||||
: item.PlayMethod === (config.settings?.IS_JELLYFIN ? streamTypeFilter : streamTypeFilter.replace("Play", "Stream")))
|
||||
: item.PlayMethod === (config?.IS_JELLYFIN ? streamTypeFilter : streamTypeFilter.replace("Play", "Stream")))
|
||||
);
|
||||
|
||||
return (
|
||||
|
||||
@@ -74,7 +74,7 @@ function ItemActivity(props) {
|
||||
filteredData = filteredData.filter((item) =>
|
||||
streamTypeFilter == "All"
|
||||
? true
|
||||
: item.PlayMethod === (config.settings?.IS_JELLYFIN ? streamTypeFilter : streamTypeFilter.replace("Play", "Stream"))
|
||||
: item.PlayMethod === (config?.IS_JELLYFIN ? streamTypeFilter : streamTypeFilter.replace("Play", "Stream"))
|
||||
);
|
||||
|
||||
return (
|
||||
|
||||
@@ -85,7 +85,7 @@ function LibraryActivity(props) {
|
||||
filteredData = filteredData.filter((item) =>
|
||||
streamTypeFilter == "All"
|
||||
? true
|
||||
: item.PlayMethod === (config.settings?.IS_JELLYFIN ? streamTypeFilter : streamTypeFilter.replace("Play", "Stream"))
|
||||
: item.PlayMethod === (config?.IS_JELLYFIN ? streamTypeFilter : streamTypeFilter.replace("Play", "Stream"))
|
||||
);
|
||||
|
||||
return (
|
||||
|
||||
@@ -193,7 +193,7 @@ export default function SettingsConfig() {
|
||||
<Form onSubmit={handleFormSubmit} className="settings-form">
|
||||
<Form.Group as={Row} className="mb-3">
|
||||
<Form.Label column className="">
|
||||
{config.settings?.IS_JELLYFIN ? (
|
||||
{config?.IS_JELLYFIN ? (
|
||||
<Trans i18nKey={"SETTINGS_PAGE.JELLYFIN_URL"} />
|
||||
) : (
|
||||
<Trans i18nKey={"SETTINGS_PAGE.EMBY_URL"} />
|
||||
|
||||
@@ -123,7 +123,7 @@ function UserActivity(props) {
|
||||
(libraryFilters.includes(item.ParentId) || item.ParentId == null) &&
|
||||
(streamTypeFilter == "All"
|
||||
? true
|
||||
: item.PlayMethod === (config.settings?.IS_JELLYFIN ? streamTypeFilter : streamTypeFilter.replace("Play", "Stream")))
|
||||
: item.PlayMethod === (config?.IS_JELLYFIN ? streamTypeFilter : streamTypeFilter.replace("Play", "Stream")))
|
||||
);
|
||||
return (
|
||||
<div className="Activity">
|
||||
|
||||
Reference in New Issue
Block a user