소스 검색

Added the return statement based off the third FB

Shunm634-source 3 년 전
부모
커밋
8fa5b312da
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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];
   if (bodyElement == null) {
     logger.warn('The body tag was not successfully obtained');
+    return
   }
   switch (newEditorMode) {
     case EditorMode.View: