diff --git a/src/components/CollectionEditor.tsx b/src/components/CollectionEditor.tsx index 961b08f..00fb512 100644 --- a/src/components/CollectionEditor.tsx +++ b/src/components/CollectionEditor.tsx @@ -247,6 +247,7 @@ const CollectionEditor: React.FC = () => { event.detail?.action === "publishContent" || event.detail?.action === "rejectContent" ) { + localStorage.removeItem("contentMode"); window.history.back(); window.addEventListener( "popstate", diff --git a/src/components/QuestionSetEditor.tsx b/src/components/QuestionSetEditor.tsx index e9a8a63..f05a9b9 100644 --- a/src/components/QuestionSetEditor.tsx +++ b/src/components/QuestionSetEditor.tsx @@ -197,6 +197,7 @@ const QuestionSetEditor: React.FC = () => { event.detail?.action === "publishContent" || event.detail?.action === "rejectContent" ) { + localStorage.removeItem("contentMode"); window.history.back(); window.addEventListener( "popstate",