Update lib/src/Components/Profile/Subcomponents/TabsContainerView.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Anton Tranelis 2025-12-16 21:12:30 +01:00 committed by GitHub
parent 9e184379e5
commit 4d19901ad0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,7 +71,7 @@ export const TabsContainerView = ({ item, tabs = [], iconAsLabels = false }: Pro
const params = new URLSearchParams(location.search)
params.set('tab', `${index}`)
const newUrl = location.pathname + '?' + params.toString()
navigate(newUrl, { replace: false })
navigate(newUrl)
},
[location.pathname, location.search, navigate],
)