Skip to content

Commit

Permalink
admin-web: fix filtering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yottahmd committed Aug 29, 2022
1 parent b483031 commit 98f83c3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions admin/src/components/molecules/DAGTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,12 @@ const defaultColumns = [
},
filterFn: (props, _, filter) => {
const data = props.original!;
let value = '';
if (data.Type == DAGDataType.Group) {
value = data.Name;
return true;
} else {
value = data.DAGStatus.DAG.Name;
const value = data.DAGStatus.DAG.Name;
return value.toLowerCase().includes(filter.toLowerCase());
}
return value.toLowerCase().includes(filter.toLowerCase());
},
sortingFn: (a, b) => {
const ta = a.original!.Type;
Expand Down

0 comments on commit 98f83c3

Please sign in to comment.