Spaces:
Running
Running
Update index.html
Browse files- index.html +6 -3
index.html
CHANGED
@@ -351,12 +351,15 @@
|
|
351 |
let datasetsToCombine = [];
|
352 |
|
353 |
// Validar rango básico
|
|
|
|
|
|
|
|
|
354 |
if (selectedMonthFrom > selectedMonthTo) {
|
355 |
-
|
356 |
-
|
357 |
}
|
358 |
|
359 |
-
|
360 |
// Determinar qué datasets incluir basándose en el rango (solo para meses 1, 2, 3)
|
361 |
if (selectedMonthFrom <= 1 && selectedMonthTo >= 1) datasetsToCombine.push(locationsJan);
|
362 |
if (selectedMonthFrom <= 2 && selectedMonthTo >= 2) datasetsToCombine.push(locationsFeb);
|
|
|
351 |
let datasetsToCombine = [];
|
352 |
|
353 |
// Validar rango básico
|
354 |
+
//if (selectedMonthFrom > selectedMonthTo) {
|
355 |
+
// console.warn("El mes 'From' no puede ser posterior al mes 'To'. Mostrando datos solo para 'From'.");
|
356 |
+
// selectedMonthTo = selectedMonthFrom; // O mostrar un error/nada
|
357 |
+
//}
|
358 |
if (selectedMonthFrom > selectedMonthTo) {
|
359 |
+
alert("Error: El mes 'From' no puede ser posterior al mes 'To'. Por favor, corrija la selección.");
|
360 |
+
return; // Detiene la ejecución de la función aquí
|
361 |
}
|
362 |
|
|
|
363 |
// Determinar qué datasets incluir basándose en el rango (solo para meses 1, 2, 3)
|
364 |
if (selectedMonthFrom <= 1 && selectedMonthTo >= 1) datasetsToCombine.push(locationsJan);
|
365 |
if (selectedMonthFrom <= 2 && selectedMonthTo >= 2) datasetsToCombine.push(locationsFeb);
|