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.

Fix empty expiredUrl

Tim Wilsond6b39052008a
diff --git a/apps/web/ui/modals/add-edit-link-modal-new/index.tsx b/apps/web/ui/modals/add-edit-link-modal-new/index.tsx
index 122d0348c7..329fe3fac8 100644
--- a/apps/web/ui/modals/add-edit-link-modal-new/index.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal-new/index.tsx
@@ -241,6 +241,9 @@ function AddEditLinkModalInner({
...rest,
// Map tags to tagIds
tagIds: tags.map(({ id }) => id),
+
+ // Manually reset empty strings to null
+ expiredUrl: rest.expiredUrl || null,
};
try {