clear publishing on publish load (#5807)

This commit is contained in:
jessopb 2021-04-02 11:55:41 -04:00 committed by GitHub
parent 9cd86be04f
commit 8ab0bcd545
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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