Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
carkom committed Jan 16, 2024
1 parent 267f03d commit 52628f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ export function ReportTable({
...style,
}}
tabIndex={1}
data-testid="table"
>
<Block
innerRef={listScrollRef}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,18 @@ export function ReportTableList({
style?: CSSProperties;
};
function RenderRow({ index, parent_index, style, key }: RenderRowProps) {
let item;
if (parent_index != null) {
item = data[parent_index].categories[index];
} else {
item = data[index];
}
const item = parent_index
? data[parent_index].categories[index]
: data[index];

const rendered_row = renderItem({
return renderItem({
item,
groupByItem,
mode,
style,
key,
monthsCount,
});

return rendered_row;
}

return (
Expand Down

0 comments on commit 52628f3

Please sign in to comment.