do not get stuck on publishing spinner (#5806)

This commit is contained in:
jessopb 2021-03-31 18:32:48 -04:00 committed by GitHub
parent 15d3d0a5ca
commit aec44841a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,6 +202,13 @@ function PublishForm(props: Props) {
} }
} }
// if you enter the page and it is stuck in publishing, "stop it."
useEffect(() => {
if (publishing) {
clearPublish();
}
}, []);
useEffect(() => { useEffect(() => {
if (!thumbnail) { if (!thumbnail) {
resetThumbnailStatus(); resetThumbnailStatus();