Fixed config fetch.
This commit is contained in:
@@ -19,7 +19,7 @@ export function useConfig(): Config {
|
|||||||
const { get } = useApi();
|
const { get } = useApi();
|
||||||
|
|
||||||
async function loadConfig() {
|
async function loadConfig() {
|
||||||
const { data } = await get(`/config`);
|
const data = await get(`/config`);
|
||||||
|
|
||||||
setConfig(data);
|
setConfig(data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user