Fix replying to wrong comment (#478)
Co-authored-by: ekzyis <ek@stacker.news>
This commit is contained in:
parent
9d05a5d09f
commit
0c7d432056
|
@ -94,7 +94,7 @@ export default function Reply ({ item, onSuccess, replyOpen, children, placehold
|
||||||
await upsertComment({ variables: { parentId, hash, hmac, ...values } })
|
await upsertComment({ variables: { parentId, hash, hmac, ...values } })
|
||||||
resetForm({ text: '' })
|
resetForm({ text: '' })
|
||||||
setReply(replyOpen || false)
|
setReply(replyOpen || false)
|
||||||
}, [upsertComment, setReply])
|
}, [upsertComment, setReply, parentId])
|
||||||
|
|
||||||
const replyInput = useRef(null)
|
const replyInput = useRef(null)
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Reference in New Issue