소스 검색

remove SettingDrawer in production, close #2240

afc163 7 년 전
부모
커밋
b91626801f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/layouts/BasicLayout.js

+ 1 - 1
src/layouts/BasicLayout.js

@@ -253,7 +253,7 @@ class BasicLayout extends React.PureComponent {
             )}
           </ContainerQuery>
         </DocumentTitle>
-        {rendering && process.env.NODE_ENV === 'production' ? null : ( // Do show SettingDrawer in production
+        {(rendering || process.env.NODE_ENV === 'production') ? null : ( // Do show SettingDrawer in production
           <SettingDrawer />
         )}
       </React.Fragment>