Fix: Y Axis Chart Width

This commit is contained in:
2025-07-14 11:59:51 -03:00
parent e670ebaac7
commit 37bc4b0206
3 changed files with 4 additions and 6 deletions

View File

@@ -14,11 +14,9 @@ export function useApiData<T>(endpoint: string) {
setLoading(true);
setError(null);
try {
// --- V CORRECCIÓN DEFINITIVA V ---
// Construimos la URL completa y absoluta para la llamada.
const fullUrl = `${API_ROOT}${endpoint}`;
const response = await apiClient.get<T>(fullUrl);
// --- ^ CORRECCIÓN DEFINITIVA ^ ---
setData(response.data);
} catch (err) {
if (err instanceof AxiosError) {