mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-18 23:45:26 +02:00
fix: Loading settings
This commit is contained in:
parent
28e645abcb
commit
785a712eb7
@ -13,7 +13,7 @@ import SettingsForm from "~/route-widgets/GlobalSettingsRoute/SettingsForm"
|
||||
export default function GlobalSettingsRoute(): ReactElement {
|
||||
const queryKey = ["get_admin_settings"]
|
||||
const query = useQuery<AdminSettings, AxiosError>(queryKey, async () => {
|
||||
const settings = getAdminSettings()
|
||||
const settings = await getAdminSettings()
|
||||
|
||||
return _.mergeWith({}, DEFAULT_ADMIN_SETTINGS, settings, (o, s) =>
|
||||
_.isNull(s) ? o : s,
|
||||
|
Loading…
x
Reference in New Issue
Block a user