From 8ab0bcd5459c3b079c00493d7566cdcd69cf4932 Mon Sep 17 00:00:00 2001 From: jessopb <36554050+jessopb@users.noreply.github.com> Date: Fri, 2 Apr 2021 11:55:41 -0400 Subject: [PATCH] clear publishing on publish load (#5807) --- 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 1bd0041a6..7034c6450 100644 --- a/ui/component/publishForm/view.jsx +++ b/ui/component/publishForm/view.jsx @@ -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();