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.

disable keyboard shortcut

Kiran K34580b726311
diff --git a/apps/web/ui/links/link-controls.tsx b/apps/web/ui/links/link-controls.tsx
index f2f05b6108..884b4e29e1 100644
--- a/apps/web/ui/links/link-controls.tsx
+++ b/apps/web/ui/links/link-controls.tsx
@@ -129,7 +129,7 @@ export function LinkControls({ link }: { link: ResponseLink }) {
copyLinkId();
break;
case "x":
- if (link.key !== "_root") setShowDeleteLinkModal(true);
+ if (!isRootLink && !isProgramLink) setShowDeleteLinkModal(true);
break;
case "b":
if (!slug) handleBanLink();