do not get stuck on publishing spinner #5806
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