mirror of
https://github.com/rowyio/rowy.git
synced 2026-07-12 13:28:48 +02:00
fix row getter
This commit is contained in:
@@ -126,11 +126,15 @@ export default function Table() {
|
||||
|
||||
const rowGetter = (rowIdx: number) =>
|
||||
columns.reduce(
|
||||
(acc, currColumn) => ({
|
||||
...acc,
|
||||
[currColumn.key]: _get(rows[rowIdx], currColumn.key),
|
||||
}),
|
||||
{}
|
||||
(acc, currColumn) => {
|
||||
if ((currColumn.key as string).includes(".")) {
|
||||
return {
|
||||
...acc,
|
||||
[currColumn.key]: _get(rows[rowIdx], currColumn.key),
|
||||
};
|
||||
} else return acc;
|
||||
},
|
||||
{ ...rows[rowIdx] }
|
||||
);
|
||||
|
||||
let tableWidth: any = `calc(100% - ${
|
||||
|
||||
Reference in New Issue
Block a user