From bb4ababe74d3a4fcf196dcfc0ad4d86d34d9b69d Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Mon, 31 Aug 2026 08:14:42 +0200 Subject: [PATCH] Fix network config saving and caching --- src/apps/dashboard/routes/networking/index.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/apps/dashboard/routes/networking/index.tsx b/src/apps/dashboard/routes/networking/index.tsx index 9dcf79f47f..93efcee1b0 100644 --- a/src/apps/dashboard/routes/networking/index.tsx +++ b/src/apps/dashboard/routes/networking/index.tsx @@ -5,7 +5,6 @@ import Box from '@mui/material/Box'; import Typography from '@mui/material/Typography'; import Stack from '@mui/material/Stack'; import { ActionFunctionArgs, Form, useActionData, useNavigation } from 'react-router-dom'; -import { useNamedConfiguration } from 'hooks/useNamedConfiguration'; import type { NetworkConfiguration } from '@jellyfin/sdk/lib/generated-client/models/network-configuration'; import TextField from '@mui/material/TextField/TextField'; import Loading from 'components/loading/LoadingComponent'; @@ -22,7 +21,7 @@ import MenuItem from '@mui/material/MenuItem'; import Button from '@mui/material/Button'; import { ServerConnections } from 'lib/jellyfin-apiclient'; import { getSystemApi } from '@jellyfin/sdk/lib/utils/api/system-api'; -import { QUERY_KEY as CONFIG_QUERY_KEY } from 'hooks/useConfiguration'; +import { QUERY_KEY as CONFIG_QUERY_KEY, useNamedConfiguration } from 'hooks/useNamedConfiguration'; import { queryClient } from 'utils/query/queryClient'; import { encodePublishedServerUris, getPublishedServerUris, PublishedServerUris, splitString } from 'apps/dashboard/features/networking/utils'; import { ActionData } from 'types/actionData'; @@ -73,7 +72,7 @@ export const action = async ({ request }: ActionFunctionArgs) => { .updateNamedConfiguration({ key: CONFIG_KEY, body: newConfig }); void queryClient.invalidateQueries({ - queryKey: [ CONFIG_QUERY_KEY ] + queryKey: [ CONFIG_QUERY_KEY, CONFIG_KEY ] }); return { @@ -387,7 +386,7 @@ export const Component = () => { name='ExternalPublishedServerUri' label={globalize.translate('LabelExternalServerUri')} helperText={globalize.translate('LabelExternalServerUriHelp')} - defaultValue={publishedUris?.internal} + defaultValue={publishedUris?.external} /> )}