fix for IS_Jellyfin flag condition looking at incorrect field in config

This commit is contained in:
CyferShepard
2024-12-22 15:27:08 +02:00
parent bacf5a5029
commit 424266b3b8
5 changed files with 5 additions and 5 deletions

View File

@@ -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 (

View File

@@ -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 (

View File

@@ -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 (

View File

@@ -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"} />

View File

@@ -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">