The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
small fixes
Steven Tey6c401f02e7fb
diff --git a/components/app/modals/add-edit-link-modal/index.tsx b/components/app/modals/add-edit-link-modal/index.tsxindex 28edc0a322..51250492b4 100644--- a/components/app/modals/add-edit-link-modal/index.tsx+++ b/components/app/modals/add-edit-link-modal/index.tsx@@ -103,6 +103,7 @@ function AddEditLinkModal({}, [debouncedKey, domain]);const generateRandomKey = useCallback(async () => {+ setKeyError(null);setGeneratingKey(true);const res = await fetch(`/api/links/random${slug ? `?slug=${slug}&domain=${domain}` : ""}`,diff --git a/components/layout/app/nav-tabs.tsx b/components/layout/app/nav-tabs.tsxindex 4e620b9eb1..8643dcd2f8 100644--- a/components/layout/app/nav-tabs.tsx+++ b/components/layout/app/nav-tabs.tsx@@ -23,6 +23,7 @@ const TabsHelper = (router: NextRouter): { name: string; href: string }[] => {return [{ name: "Projects", href: `/` },{ name: "Dub.sh Links", href: `/links` },+ // { name: "Settings", href: `/settings` },];};diff --git a/lib/utils.ts b/lib/utils.tsindex e3faaa3787..41a55973c8 100644--- a/lib/utils.ts+++ b/lib/utils.ts@@ -256,14 +256,10 @@ export const getQueryString = (router: NextRouter,opts?: Record<string, string>,) => {- // here, we omit the slug from the query string because- // for some reason it breaks the router because of middleware rewrites- // const { slug, ...queryWithoutSlug } = router.query as Record<string, string>;const queryString = new URLSearchParams({...(router.query as Record<string, string>),...opts,}).toString();- console.log(queryString);return `${queryString ? "?" : ""}${queryString}`;};