Skip to content

Commit

Permalink
fix(appsmithorg#16584): filterTableData source of truth
Browse files Browse the repository at this point in the history
  • Loading branch information
anasKhafaga committed Oct 13, 2024
1 parent ef5a253 commit b5007ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/client/src/widgets/TableWidgetV2/widget/derived.js
Original file line number Diff line number Diff line change
Expand Up @@ -811,8 +811,9 @@ export default {
ConditionFunctions[props.filters[i].condition];

if (conditionFunction) {
const originalRow = props.tableData.find(record => record._id === displayedRow._id);
filterResult = conditionFunction(
displayedRow[props.filters[i].column],
(originalRow ?? displayedRow)[props.filters[i].column],
props.filters[i].value,
);
}
Expand Down

0 comments on commit b5007ea

Please sign in to comment.