Fix tick box table updates
This commit is contained in:
fraxle
2026-05-25 00:47:20 +01:00
parent 8aee90a56f
commit 4e0f5963fc
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -36,6 +36,8 @@ export function useTableScroll({
vehicleType,
indoorMode,
indoorManaged,
showDecimals,
showUnits,
}) {
// --- SCROLL INDICATORS ---------------------------------------------
const [tableCanScrollLeft, setTableCanScrollLeft] = useState(false);
@@ -215,7 +217,7 @@ export function useTableScroll({
if (ro) ro.disconnect();
window.removeEventListener('resize', sync);
};
}, [forecast, visibleCols, selectedDay, skinType, vehicleType, indoorMode, indoorManaged]);
}, [forecast, visibleCols, selectedDay, skinType, vehicleType, indoorMode, indoorManaged, showDecimals, showUnits]);
return {
tableCanScrollLeft,