fix: autorun controlled component warnings

This commit is contained in:
pompurin404 2025-02-04 13:53:56 +08:00
parent f2a4049f6c
commit 32d91335cc

View File

@ -33,7 +33,7 @@ import { useTranslation } from 'react-i18next'
const GeneralConfig: React.FC = () => {
const { t, i18n } = useTranslation()
const { data: enable, mutate: mutateEnable } = useSWR('checkAutoRun', checkAutoRun)
const { data: enable = false, mutate: mutateEnable } = useSWR('checkAutoRun', checkAutoRun)
const { appConfig, patchAppConfig } = useAppConfig()
const [customThemes, setCustomThemes] = useState<{ key: string; label: string }[]>()
const [openCSSEditor, setOpenCSSEditor] = useState(false)