Ensure URLSearchParams copy uses string
cgen-e9b7d1ac9cf64a6db1db04573fcc6a94
This commit is contained in:
parent
707d4959ec
commit
2f8634fde0
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ export default function Dashboard() {
|
|||
|
||||
const handleTabChange = (value: string) => {
|
||||
setActiveTab(value);
|
||||
const next = new URLSearchParams(searchParams);
|
||||
const next = new URLSearchParams(searchParams.toString());
|
||||
if (value === "profile") {
|
||||
if (next.has("tab")) {
|
||||
next.delete("tab");
|
||||
|
|
|
|||
Loading…
Reference in a new issue