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.

don't generateRandomKey unprompted

Steven Teya7bc1859c73c
diff --git a/apps/web/ui/links/short-link-input.tsx b/apps/web/ui/links/short-link-input.tsx
index f22baef143..1a97a2533d 100644
--- a/apps/web/ui/links/short-link-input.tsx
+++ b/apps/web/ui/links/short-link-input.tsx
@@ -270,13 +270,6 @@ export const ShortLinkInput = forwardRef<HTMLInputElement, ShortLinkInputProps>(
} else {
runKeyChecks(e.target.value);
}
- } else if (
- domain &&
- workspaceId &&
- data.url.length > 0 &&
- !saving
- ) {
- generateRandomKey();
}
}}
disabled={lockKey}