Ensure URLSearchParams copy uses string

cgen-e9b7d1ac9cf64a6db1db04573fcc6a94
This commit is contained in:
Builder.io 2025-09-30 21:07:04 +00:00
parent 707d4959ec
commit 2f8634fde0

View file

@ -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");