From 49a132630d80d5e7994d2b23f5e8a53520e80d41 Mon Sep 17 00:00:00 2001 From: Shawn Zhu Date: Tue, 28 Mar 2023 17:16:39 -0400 Subject: [PATCH] fix(PHC-4380): achieves backward compatibility #331 --- src/components/TableModule/TableModule.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/TableModule/TableModule.tsx b/src/components/TableModule/TableModule.tsx index 7e0b98bc..1c601c13 100644 --- a/src/components/TableModule/TableModule.tsx +++ b/src/components/TableModule/TableModule.tsx @@ -543,7 +543,9 @@ export const TableModule = React.memo( )} {data?.map((row, rowIndex) => { - const rowData = createRow(row, rowIndex); + const rowData = enableRowSelection + ? createRow(row, rowIndex) + : row; return (