mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 15:47:08 +00:00
Fix issue with navigating back from version page
This commit is contained in:
@@ -21,7 +21,7 @@ export function VersionDetail({ id, version }: Props) {
|
||||
const [tab, setTab] = useSearchParam('tab')
|
||||
useEffect(() => {
|
||||
if (tab === undefined || !Tabs.includes(tab)) {
|
||||
setTab(Tabs[0])
|
||||
setTab(Tabs[0], true)
|
||||
}
|
||||
}, [tab])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user