Skip to content

Commit fee101c

Browse files
committed
Remove unused filter criteria hook and clean up TaskAnalysisTable component
1 parent df675b2 commit fee101c

File tree

2 files changed

+0
-493
lines changed

2 files changed

+0
-493
lines changed

src/components/TaskAnalysisTable/TaskAnalysisTable.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export const TaskAnalysisTableInternal = (props) => {
7777
const prevSortByRef = useRef(null);
7878
const prevFiltersRef = useRef(null);
7979

80-
// Column filter keys that can be set in the table
8180
const columnFilterKeys = [
8281
"id",
8382
"featureId",
@@ -92,13 +91,11 @@ export const TaskAnalysisTableInternal = (props) => {
9291

9392
const handleStateChange = useCallback(
9493
({ sortBy, filters, pageIndex }) => {
95-
// Start with all column filters set to undefined (to clear them)
9694
const tableFilters = columnFilterKeys.reduce((acc, key) => {
9795
acc[key] = undefined;
9896
return acc;
9997
}, {});
10098

101-
// Then set the values for filters that are actually set
10299
filters.forEach((filter) => {
103100
let value = filter.value;
104101

0 commit comments

Comments
 (0)