Browse Source

Added the return statement based off the third FB

Shunm634-source 3 years ago
parent
commit
8fa5b312da
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/app/src/stores/ui.tsx

+ 1 - 0
packages/app/src/stores/ui.tsx

@@ -74,6 +74,7 @@ const updateBodyClassesByEditorMode = (newEditorMode: EditorMode, isSidebar = fa
   const bodyElement = document.getElementsByTagName('body')[0];
   const bodyElement = document.getElementsByTagName('body')[0];
   if (bodyElement == null) {
   if (bodyElement == null) {
     logger.warn('The body tag was not successfully obtained');
     logger.warn('The body tag was not successfully obtained');
+    return
   }
   }
   switch (newEditorMode) {
   switch (newEditorMode) {
     case EditorMode.View:
     case EditorMode.View: