mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(frontend): call mutate after changing public settings (#1302)
This commit is contained in:
@@ -3,7 +3,7 @@ import { Field, Form, Formik } from 'formik';
|
||||
import React, { useMemo } from 'react';
|
||||
import { defineMessages, useIntl } from 'react-intl';
|
||||
import { useToasts } from 'react-toast-notifications';
|
||||
import useSWR from 'swr';
|
||||
import useSWR, { mutate } from 'swr';
|
||||
import * as Yup from 'yup';
|
||||
import type { Language, MainSettings } from '../../../server/lib/settings';
|
||||
import { Permission, useUser } from '../../hooks/useUser';
|
||||
@@ -162,6 +162,7 @@ const SettingsMain: React.FC = () => {
|
||||
trustProxy: values.trustProxy,
|
||||
cacheImages: values.cacheImages,
|
||||
});
|
||||
mutate('/api/v1/settings/public');
|
||||
|
||||
addToast(intl.formatMessage(messages.toastSettingsSuccess), {
|
||||
autoDismiss: true,
|
||||
|
Reference in New Issue
Block a user