Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinvanschoren committed Jan 25, 2024
1 parent 161be72 commit 5a9b03d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions app/src/components/search/Filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,10 @@ const processOption = (option, translate = true) => {
} else {
return [`filters.${lib}`];
}
} else if (translate) {
} else {
// If comma or newline separated, return the first
const segments = option.split(/,|\n/);
return [`filters.${segments[0]}`];
} else {
return option;
}
};

Expand Down
2 changes: 0 additions & 2 deletions app/src/pages/r/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const search_facets = [
{
label: "filters.dataset",
field: "run_task.source_data.name.keyword",
translate: false,
},
{
label: "filters.tasktype",
Expand All @@ -60,7 +59,6 @@ const search_facets = [
{
label: "filters.flow",
field: "run_flow.name",
translate: false,
},
];

Expand Down

0 comments on commit 5a9b03d

Please sign in to comment.