From d7d0d70aa5e281834f87087f996e5a95e37aede4 Mon Sep 17 00:00:00 2001 From: Palash Date: Thu, 23 Jun 2022 01:12:12 +0530 Subject: [PATCH] chore: search filter is made conditional as filters need to be present --- .../Panel/PanelBody/CommonCheckBox/index.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/frontend/src/container/Trace/Filters/Panel/PanelBody/CommonCheckBox/index.tsx b/frontend/src/container/Trace/Filters/Panel/PanelBody/CommonCheckBox/index.tsx index 72d7439ade..29255ae549 100644 --- a/frontend/src/container/Trace/Filters/Panel/PanelBody/CommonCheckBox/index.tsx +++ b/frontend/src/container/Trace/Filters/Panel/PanelBody/CommonCheckBox/index.tsx @@ -41,14 +41,16 @@ function CommonCheckBox(props: CommonCheckBoxProps): JSX.Element { return ( <> - setSearchFilter(e.target.value)} - style={{ - padding: '0 3%', - }} - placeholder="Filter Values" - /> + {statusObj.length > 0 && ( + setSearchFilter(e.target.value)} + style={{ + padding: '0 3%', + }} + placeholder="Filter Values" + /> + )} {statusObj .sort((a, b) => {