Fix history state manipulation

This commit is contained in:
Adrian Rumpold
2025-04-30 12:15:44 +02:00
parent 7dd913df7b
commit 2886989835
3 changed files with 5 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ export const useUrlSync = () => {
// Update the URL when Zustand changes
useEffect(() => {
if (celexId === null) {
if (!celexId) {
return;
}
let targetUrl = `/${celexId}`;