Skip to content

Commit

Permalink
🐛 Allow none search value for issues (#1585)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 committed Dec 6, 2023
1 parent ddb5a10 commit 836d531
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions client/src/app/pages/issues/issues-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,18 @@ export const IssuesTable: React.FC<IIssuesTableProps> = ({ 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",
Expand Down

0 comments on commit 836d531

Please sign in to comment.