The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
simplify queryParams logic
Kiran K31163015e520
diff --git a/apps/web/ui/links/link-card.tsx b/apps/web/ui/links/link-card.tsxindex 9a2c055a24..e485e5e340 100644--- a/apps/web/ui/links/link-card.tsx+++ b/apps/web/ui/links/link-card.tsx@@ -630,16 +630,23 @@ function TagButton(tag: TagProps) {: [...selectedTagIds, tag.id];queryParams({- ...(newTagIds.length === 0- ? {- del: ["tagIds"],- }- : {- set: {- tagIds: newTagIds.join(","),- },- }),+ set: {+ tagIds: newTagIds.join(","),+ },+ del: [...(newTagIds.length ? [] : ["tagIds"])],});++ // queryParams({+ // ...(newTagIds.length === 0+ // ? {+ // del: ["tagIds"],+ // }+ // : {+ // set: {+ // tagIds: newTagIds.join(","),+ // },+ // }),+ // });}}className="transition-all duration-75 hover:scale-105 active:scale-100">