Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 8adce2a

Browse files
committed
Fixed: URL with no user handle did not properly update state on history pop.
1 parent 6d52272 commit 8adce2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/store/reducers/workPeriods.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,8 @@ function updateStateFromQuery(queryStr, state) {
727727
updateFilters = true;
728728
}
729729
// checking user handle
730-
if (params.userHandle && params.userHandle !== filters.userHandle) {
731-
filters.userHandle = params.userHandle.slice(0, 256);
730+
if (params.userHandle !== filters.userHandle) {
731+
filters.userHandle = params.userHandle?.slice(0, 256) || "";
732732
updateFilters = true;
733733
}
734734
// checking sorting criteria

0 commit comments

Comments
 (0)