do not get stuck on publishing spinner (#5806)
This commit is contained in:
parent
15d3d0a5ca
commit
aec44841a4
1 changed files with 7 additions and 0 deletions
|
@ -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(() => {
|
||||
if (!thumbnail) {
|
||||
resetThumbnailStatus();
|
||||
|
|
Loading…
Reference in a new issue