From fa2c518e4029b9dc4574452aa4966fbcb4f0355f Mon Sep 17 00:00:00 2001 From: Shailesh Pandit Date: Sun, 30 Jan 2022 11:47:52 +0530 Subject: [PATCH] Only show Ml Debug option when Ml Search is enabled --- src/components/Sidebar.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 0b1da1cd7..bc3a7310a 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -337,13 +337,15 @@ export default function Sidebar(props: Props) { ? constants.DISABLE_ML_SEARCH : constants.ENABLE_ML_SEARCH} - { - router.push(PAGES.ML_DEBUG); - }}> - {constants.ML_DEBUG} - + {appContext.mlSearchEnabled && ( + { + router.push(PAGES.ML_DEBUG); + }}> + {constants.ML_DEBUG} + + )} initiateEmail('contact@ente.io')}>