This commit is contained in:
CanbiZ
2025-04-09 14:59:38 +02:00
parent 7818dd0300
commit 444acd9db5
2 changed files with 12 additions and 13 deletions

View File

@@ -10,9 +10,9 @@ export const fetchCategories = async () => {
};
export const fetchVersions = async () => {
const response = await fetch(`api/versions`);
if (!response.ok) {
throw new Error(`Failed to fetch versions: ${response.statusText}`);
}
return response.json();
const response = await fetch(`api/versions`);
if (!response.ok) {
throw new Error(`Failed to fetch versions: ${response.statusText}`);
}
return response.json();
};