From 836d5317682a10162840e80186ea0ca5fdbb8171 Mon Sep 17 00:00:00 2001 From: Ian Bolton Date: Wed, 6 Dec 2023 13:34:31 -0500 Subject: [PATCH] :bug: Allow none search value for issues (#1585) Address: https://issues.redhat.com/browse/MTA-1779 Signed-off-by: ibolton336 --- client/src/app/pages/issues/issues-table.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/client/src/app/pages/issues/issues-table.tsx b/client/src/app/pages/issues/issues-table.tsx index 7229f9015c..db2e487fc8 100644 --- a/client/src/app/pages/issues/issues-table.tsx +++ b/client/src/app/pages/issues/issues-table.tsx @@ -138,8 +138,18 @@ export const IssuesTable: React.FC = ({ mode }) => { what: t("terms.source").toLowerCase(), }) + "...", serverFilterField: "labels", - getServerFilterValue: (value) => - value?.length === 1 ? [`konveyor.io/source=*${value}*`] : undefined, + getServerFilterValue: (value) => { + if ( + (value && value[0] === "None") || + (value && value[0] === "none") + ) { + return [`konveyor.io/source`]; + } else if (value && value.length > 0) { + return [`konveyor.io/source=*${value}*`]; + } else { + return undefined; + } + }, }, { key: "target",