Fix no dupes check after link unshortening
This commit is contained in:
parent
f05f3deb17
commit
5c55afc97c
|
@ -80,6 +80,14 @@ export function LinkForm ({ item, sub, editThreshold, children }) {
|
||||||
}
|
}
|
||||||
}, [data?.pageTitleAndUnshorted?.title])
|
}, [data?.pageTitleAndUnshorted?.title])
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (data?.pageTitleAndUnshorted?.unshorted) {
|
||||||
|
getDupes({
|
||||||
|
variables: { url: data?.pageTitleAndUnshorted?.unshorted }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}, [data?.pageTitleAndUnshorted?.unshorted])
|
||||||
|
|
||||||
const [postDisabled, setPostDisabled] = useState(false)
|
const [postDisabled, setPostDisabled] = useState(false)
|
||||||
const [titleOverride, setTitleOverride] = useState()
|
const [titleOverride, setTitleOverride] = useState()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue