poster url cleared after removing file

This commit is contained in:
Daniel Shleifman
2021-06-10 10:03:50 +03:00
parent 2b55352d37
commit cfd707ff5d

View File

@@ -105,6 +105,12 @@ export default function AddDialog({ handleClose }) {
useEffect(() => {
setIsTorrentSourceCorrect(chechTorrentSource(torrentSource))
if (!torrentSource) {
setPosterUrl('')
setPosterList()
setIsPosterUrlCorrect(false)
}
}, [torrentSource])
const handleCapture = files => {