The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update short-link-input.tsx
Steven Tey593ae129baa5
diff --git a/apps/web/ui/links/short-link-input.tsx b/apps/web/ui/links/short-link-input.tsxindex af381528c0..89ebd8d5eb 100644--- a/apps/web/ui/links/short-link-input.tsx+++ b/apps/web/ui/links/short-link-input.tsx@@ -263,8 +263,13 @@ export const ShortLinkInput = forwardRef<HTMLInputElement, ShortLinkInputProps>(}}onBlur={(e) => {// if the key is changed, check if key exists- if (e.target.value && existingLinkProps?.key !== e.target.value) {- runKeyChecks(e.target.value);+ if (e.target.value) {+ // no need to check if the link key didn't change (for editing existing links)+ if (existingLinkProps?.key === e.target.value) {+ return;+ } else {+ runKeyChecks(e.target.value);+ }} else if (domain &&workspaceId &&