The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
handle empty prompt
Steven Tey0a8e89d124d0
diff --git a/app/ui/modals/add-edit-link-modal/og-section.tsx b/app/ui/modals/add-edit-link-modal/og-section.tsxindex e38d8b5583..b350c7d73c 100644--- a/app/ui/modals/add-edit-link-modal/og-section.tsx+++ b/app/ui/modals/add-edit-link-modal/og-section.tsx@@ -115,7 +115,9 @@ export default function OGSection({"Paste a URL to an image (max 5MB)","https://",);- setData((prev) => ({ ...prev, image }));+ if (image) {+ setData((prev) => ({ ...prev, image }));+ }}}><Link2 className="h-4 w-4 text-gray-500" />diff --git a/components/app/modals/add-edit-link-modal/og-section.tsx b/components/app/modals/add-edit-link-modal/og-section.tsxindex 14b1f47f65..2cff97c7ac 100644--- a/components/app/modals/add-edit-link-modal/og-section.tsx+++ b/components/app/modals/add-edit-link-modal/og-section.tsx@@ -113,7 +113,9 @@ export default function OGSection({"Paste a URL to an image (max 5MB)","https://",);- setData((prev) => ({ ...prev, image }));+ if (image) {+ setData((prev) => ({ ...prev, image }));+ }}}><Link2 className="h-4 w-4 text-gray-500" />