preventing scroll reset in case of message

This commit is contained in:
Knee Cola
2025-11-24 23:08:18 +01:00
parent e1b46d279a
commit 18fbb31917

View File

@@ -83,12 +83,6 @@ export const MonthLocationList:React.FC<MonthLocationListProps > = ({
params.delete('locationDeleted');
messageShown = true;
}
// Clean up URL parameters if any message was shown
if (messageShown) {
const newSearch = params.toString();
router.replace(newSearch ? `?${newSearch}` : '/');
}
}, [search, router, t]);
if(!availableYears || !months) {