The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
dummy
Steven Tey161aed889a3f
diff --git a/apps/web/ui/links/link-filters.tsx b/apps/web/ui/links/link-filters.tsxindex 03a8095c13..e7f2256fd9 100644--- a/apps/web/ui/links/link-filters.tsx+++ b/apps/web/ui/links/link-filters.tsx@@ -391,7 +391,7 @@ const TagPopover = ({ tag, count }: { tag: TagProps; count: number }) => {e.stopPropagation();e.preventDefault();setProcessing(true);- fetch(`/api/tags/${tag.id}?projectSlug${slug}`, {+ fetch(`/api/tags/${tag.id}?projectSlug=${slug}`, {method: "PUT",headers: {"Content-Type": "application/json",@@ -400,7 +400,7 @@ const TagPopover = ({ tag, count }: { tag: TagProps; count: number }) => {}).then(async (res) => {setProcessing(false);if (res.ok) {- await mutate(`/api/tags?projectSlug${slug}`);+ await mutate(`/api/tags?projectSlug=${slug}`);toast.success("Tag updated");} else {toast.error("Something went wrong");@@ -410,11 +410,11 @@ const TagPopover = ({ tag, count }: { tag: TagProps; count: number }) => {const handleDelete = async () => {setProcessing(true);- fetch(`/api/tags/${tag.id}?projectSlug${slug}`, {+ fetch(`/api/tags/${tag.id}?projectSlug=${slug}`, {method: "DELETE",}).then(async (res) => {if (res.ok) {- await mutate(`/api/tags?projectSlug${slug}`);+ await mutate(`/api/tags?projectSlug=${slug}`);toast.success("Tag deleted");} else {toast.error("Something went wrong");diff --git a/apps/web/ui/modals/add-edit-link-modal/tags-section.tsx b/apps/web/ui/modals/add-edit-link-modal/tags-section.tsxindex f72f1482c8..4f29b05106 100644--- a/apps/web/ui/modals/add-edit-link-modal/tags-section.tsx+++ b/apps/web/ui/modals/add-edit-link-modal/tags-section.tsx@@ -39,7 +39,7 @@ export default function TagsSection({const createTag = async (tag: string) => {setCreatingTag(true);- fetch(`/api/tags?projectSlug${slug}`, {+ fetch(`/api/tags?projectSlug=${slug}`, {method: "POST",headers: {"Content-Type": "application/json",@@ -47,7 +47,7 @@ export default function TagsSection({body: JSON.stringify({ tag }),}).then(async (res) => {if (res.ok) {- await mutate(`/api/tags?projectSlug${slug}`);+ await mutate(`/api/tags?projectSlug=${slug}`);const newTag = await res.json();setData({ ...data, tagId: newTag.id });toast.success(`Successfully created tag!`);