Skip to content

Commit

Permalink
fix: exception thrown on /gaps (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoamGaash authored Feb 26, 2024
1 parent c6d1235 commit a5460eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/routes/MainRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export const MainRoute = () => {
useEffect(() => {
const page = PAGES.find((page) => page.path === location.pathname)
if (page && 'searchParamsRequired' in page && page.searchParamsRequired) {
const params = new URLSearchParams({ timestamp: search.timestamp.toString() })
const params = new URLSearchParams({
timestamp: search.timestamp?.toString(),
})

if (search.operatorId) {
params.set('operatorId', search.operatorId)
Expand Down

0 comments on commit a5460eb

Please sign in to comment.