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.

generate metatags by default if there's no image

Steven Tey2f935a9b3676
diff --git a/components/app/modals/add-edit-link-modal/index.tsx b/components/app/modals/add-edit-link-modal/index.tsx
index 23656c556b..55d80a9385 100644
--- a/components/app/modals/add-edit-link-modal/index.tsx
+++ b/components/app/modals/add-edit-link-modal/index.tsx
@@ -130,7 +130,9 @@ function AddEditLinkModal({
// return () => window.removeEventListener("paste", onPaste as any);
// }, [onPaste]);
- const [generatingMetatags, setGeneratingMetatags] = useState(false);
+ const [generatingMetatags, setGeneratingMetatags] = useState(
+ props ? true : false,
+ );
const [debouncedUrl] = useDebounce(getUrlWithoutUTMParams(url), 500);
useEffect(() => {
// if there's a password, no need to generate metatags