Skip to content

Commit

Permalink
fix typo in processedTableDataWithLabelInsteadOfValue
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesikot committed Jul 30, 2024
1 parent 7c90156 commit 8a4e8b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/client/src/widgets/TableWidgetV2/widget/derived.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ export default {
If there are select columns,
transform the specific columns data to show the label instead of the value for sorting
*/
let processedTableDataWithLabelInseadOfValue;
let processedTableDataWithLabelInsteadOfValue;
if (selectColumnKeysWithSortByLabel.length) {
const transformedValueToLabelTableData = processedTableData.map((row) => {
const newRow = { ...row };
Expand All @@ -353,7 +353,7 @@ export default {

return newRow;
});
processedTableDataWithLabelInseadOfValue =
processedTableDataWithLabelInsteadOfValue =
transformedValueToLabelTableData;
}

Expand Down Expand Up @@ -393,7 +393,7 @@ export default {

const transformedTableDataForSorting =
selectColumnKeysWithSortByLabel.length
? processedTableDataWithLabelInseadOfValue
? processedTableDataWithLabelInsteadOfValue
: processedTableData;

sortedTableData = transformedTableDataForSorting.sort((a, b) => {
Expand Down

0 comments on commit 8a4e8b2

Please sign in to comment.