Fixed config fetch.
This commit is contained in:
1 parent
2a559aa661
commit
ffc8f6faae
1 file changed
+1
-1
@@ -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