diff --git a/components/link-form.js b/components/link-form.js index e33d08b5..be6802c2 100644 --- a/components/link-form.js +++ b/components/link-form.js @@ -80,6 +80,14 @@ export function LinkForm ({ item, sub, editThreshold, children }) { } }, [data?.pageTitleAndUnshorted?.title]) + useEffect(() => { + if (data?.pageTitleAndUnshorted?.unshorted) { + getDupes({ + variables: { url: data?.pageTitleAndUnshorted?.unshorted } + }) + } + }, [data?.pageTitleAndUnshorted?.unshorted]) + const [postDisabled, setPostDisabled] = useState(false) const [titleOverride, setTitleOverride] = useState()