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

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

View File

@ -71,7 +71,7 @@ export const TabsContainerForm = ({ item, state, setState, tabs, iconAsLabels =
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],
)