فهرست منبع

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>