Explorar o código

remove SettingDrawer in production, close #2240

afc163 %!s(int64=7) %!d(string=hai) anos
pai
achega
b91626801f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>