Skip to content

Commit

Permalink
fixed table modal not matching data
Browse files Browse the repository at this point in the history
  • Loading branch information
jeessh committed Dec 6, 2024
1 parent 04d474c commit bbda97e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/components/common/CommonTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,10 @@ const CommonTable = ({
value: string;
}

const colData: ColumnInfo[] = columnInfo.map((col, index) => {
const value = Object.entries(selectedRow)[index]?.[1] || " ";
const colData: ColumnInfo[] = columnInfo.map((col) => {
return {
header: String(col.header),
value: String(value),
value: String(selectedRow[col.key]),
};
});

Expand Down

0 comments on commit bbda97e

Please sign in to comment.