From 6c7ba3bc79130018e5167fe0343150d7842007e8 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Mon, 11 Mar 2024 21:01:59 +0530 Subject: [PATCH] chore: applied filter ui improvement (#3918) --- .../issue-layouts/filters/applied-filters/filters-list.tsx | 4 ++-- .../filters/applied-filters/roots/archived-issue.tsx | 2 +- .../filters/applied-filters/roots/cycle-root.tsx | 2 +- .../filters/applied-filters/roots/draft-issue.tsx | 2 +- .../filters/applied-filters/roots/module-root.tsx | 2 +- .../filters/applied-filters/roots/project-root.tsx | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/components/issues/issue-layouts/filters/applied-filters/filters-list.tsx b/web/components/issues/issue-layouts/filters/applied-filters/filters-list.tsx index 467258273..94f2b30d1 100644 --- a/web/components/issues/issue-layouts/filters/applied-filters/filters-list.tsx +++ b/web/components/issues/issue-layouts/filters/applied-filters/filters-list.tsx @@ -62,8 +62,8 @@ export const AppliedFiltersList: React.FC = observer((props) => { key={filterKey} className="flex flex-wrap items-center gap-2 rounded-md border border-custom-border-200 px-2 py-1 capitalize" > - {replaceUnderscoreIfSnakeCase(filterKey)} -
+
+ {replaceUnderscoreIfSnakeCase(filterKey)} {membersFilters.includes(filterKey) && ( { if (Object.keys(appliedFilters).length === 0) return null; return ( -
+
{ if (Object.keys(appliedFilters).length === 0 || !workspaceSlug || !projectId) return null; return ( -
+
{ if (Object.keys(appliedFilters).length === 0) return null; return ( -
+
{ if (!workspaceSlug || !projectId || Object.keys(appliedFilters).length === 0) return null; return ( -
+
{ if (Object.keys(appliedFilters).length === 0) return null; return ( -
+