Skip to content

Commit

Permalink
Minor fix and rebuilt JS file
Browse files Browse the repository at this point in the history
  • Loading branch information
JawHawk committed May 22, 2024
1 parent fca44d9 commit fdca1f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
2 changes: 1 addition & 1 deletion benchexec/tablegenerator/react-table/build/main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion benchexec/tablegenerator/react-table/build/vendors.min.js

Large diffs are not rendered by default.

19 changes: 4 additions & 15 deletions benchexec/tablegenerator/react-table/src/components/ReactTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,21 +641,10 @@ const Table = (props) => {

// get selected status and category values
useEffect(() => {
// To check if any task filter is applied
let taskFilterExists = false;

for (const filter of props.filters) {
const { values, id } = filter;
if (id === "id" && !isNil(values)) {
taskFilterExists = true;
setDisableTaskText(true);
}
}

// Enable task text when task filter is not applied
if (!taskFilterExists) {
setDisableTaskText(false);
}
// To disable task text if any task filter is applied
setDisableTaskText(
props.filters.some(({ id, values }) => id === "id" && !isNil(values)),
);

let newFilteredColumnValues = getNewFilteredColumnValues();
if (!deepEqual(newFilteredColumnValues, filteredColumnValues)) {
Expand Down

0 comments on commit fdca1f2

Please sign in to comment.