Просмотр исходного кода

Added the return statement based off the third FB

Shunm634-source 3 лет назад
Родитель
Сommit
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: