From aec44841a4c2b1d5618c133282ffc12727d96e41 Mon Sep 17 00:00:00 2001 From: jessopb <36554050+jessopb@users.noreply.github.com> Date: Wed, 31 Mar 2021 18:32:48 -0400 Subject: [PATCH] do not get stuck on publishing spinner (#5806) --- ui/component/publishForm/view.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ui/component/publishForm/view.jsx b/ui/component/publishForm/view.jsx index aff0f943f..d34788b86 100644 --- a/ui/component/publishForm/view.jsx +++ b/ui/component/publishForm/view.jsx @@ -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();