Преглед изворни кода

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>