We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b048848 commit f40ada1Copy full SHA for f40ada1
lazyweb/components/desktop/ResourceListBar/index.tsx
@@ -57,7 +57,10 @@ const ResourceListBar = (props: Props) => {
57
}else{
58
router.replace({
59
pathname: '/',
60
- query: { tab: newTabs[id-1].slug },
+ query: {
61
+ ...router.query,
62
+ tab: newTabs[id-1].slug
63
+ },
64
}, undefined, { shallow: true })
65
}
66
setTabs(newTabs)
@@ -76,7 +79,10 @@ const ResourceListBar = (props: Props) => {
76
79
if(localStorage.getItem('token') && !router.query.tab){
77
80
78
81
- query: { tab: 'all' },
82
83
84
+ tab: 'all'
85
86
87
88
0 commit comments