From 72f382863be962bca27c7d8455d8ed06774c962d Mon Sep 17 00:00:00 2001 From: Anas Khafaga Date: Sun, 13 Oct 2024 22:37:12 +0300 Subject: [PATCH] fix(#16584): filterTableData source of truth --- app/client/src/widgets/TableWidgetV2/widget/derived.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/client/src/widgets/TableWidgetV2/widget/derived.js b/app/client/src/widgets/TableWidgetV2/widget/derived.js index a5ed2af045b..de6317d935f 100644 --- a/app/client/src/widgets/TableWidgetV2/widget/derived.js +++ b/app/client/src/widgets/TableWidgetV2/widget/derived.js @@ -811,8 +811,9 @@ export default { ConditionFunctions[props.filters[i].condition]; if (conditionFunction) { + const originalRow = props.tableData[row.__originalIndex__]; filterResult = conditionFunction( - displayedRow[props.filters[i].column], + originalRow[props.filters[i].column], props.filters[i].value, ); }