Fix history state manipulation
This commit is contained in:
@@ -30,7 +30,7 @@ export const useUrlSync = () => {
|
||||
|
||||
// Update the URL when Zustand changes
|
||||
useEffect(() => {
|
||||
if (celexId === null) {
|
||||
if (!celexId) {
|
||||
return;
|
||||
}
|
||||
let targetUrl = `/${celexId}`;
|
||||
|
||||
Reference in New Issue
Block a user