Only show Ml Debug option when Ml Search is enabled

This commit is contained in:
Shailesh Pandit 2022-01-30 11:47:52 +05:30
parent 8d6fb780b4
commit fa2c518e40

View file

@ -337,6 +337,7 @@ export default function Sidebar(props: Props) {
? constants.DISABLE_ML_SEARCH
: constants.ENABLE_ML_SEARCH}
</LinkButton>
{appContext.mlSearchEnabled && (
<LinkButton
style={{ marginTop: '30px' }}
onClick={() => {
@ -344,6 +345,7 @@ export default function Sidebar(props: Props) {
}}>
{constants.ML_DEBUG}
</LinkButton>
)}
<LinkButton
style={{ marginTop: '30px' }}
onClick={() => initiateEmail('contact@ente.io')}>