Add a condition to change tab
This commit is contained in:
@@ -74,7 +74,9 @@ export default function Navigasyon({selectedTab}) {
|
||||
const handleChange = (event, newValue) => {
|
||||
setValue(newValue)
|
||||
|
||||
router.push(tabRouteHref[newValue], tabRouteAs[newValue])
|
||||
if (newValue !== selectedTab) {
|
||||
router.push(tabRouteHref[newValue], tabRouteAs[newValue])
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user