refactor: Update API response handling to access nested data structure

This commit is contained in:
Yusuf İpek
2026-02-07 17:59:37 +03:00
parent 49c3ac61ea
commit f6044f3c24
14 changed files with 45 additions and 37 deletions
@@ -79,7 +79,8 @@ export default function CompareVersionsPage() {
setLoading(false);
return;
}
const data = await res.json();
const response = await res.json();
const data = response.data;
setVideo(data);
// Set initial versions from query params or defaults