Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

remove tagId param when delete tag

Steven Teydba84450e58d
diff --git a/apps/web/ui/links/link-filters.tsx b/apps/web/ui/links/link-filters.tsx
index 4e4f5709c2..e0752bdb04 100644
--- a/apps/web/ui/links/link-filters.tsx
+++ b/apps/web/ui/links/link-filters.tsx
@@ -434,12 +434,15 @@ const TagPopover = ({ tag, count }: { tag: TagProps; count: number }) => {
props: tag,
});
+ const { queryParams } = useRouterStuff();
+
const handleDelete = async () => {
setProcessing(true);
fetch(`/api/tags/${tag.id}?projectSlug=${slug}`, {
method: "DELETE",
}).then(async (res) => {
if (res.ok) {
+ queryParams({ del: "tagId" });
await Promise.all([
mutate(`/api/tags?projectSlug=${slug}`),
mutate(