This commit is contained in:
ajnart committed 2022-12-20 11:45:33 +09:00
1 parent 79d7042cd9
commit 4d6e6123e1
32 files changed
+74 -125

No files matched your search

+1 -3
View File
@@ -47,11 +47,9 @@ export default function ConfigChanger() {
);
}
const useConfigsQuery = () => {
return useQuery({
const useConfigsQuery = () => useQuery({
queryKey: ['config/get-all'],
queryFn: fetchConfigs,
});
};
const fetchConfigs = async () => (await (await fetch('/api/configs')).json()) as string[];