Skip to content

Commit

Permalink
Merge pull request #310 from raccoongang/lunyachek/fix/edit-grades-mo…
Browse files Browse the repository at this point in the history
…dal-rows-counter-olive

fix: Fix rows counter in the Edit Grade modal window
  • Loading branch information
arbrandes committed May 30, 2024
2 parents c21a81e + 18cede4 commit 13433e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ exports[`OverrideTable component render snapshot 1`] = `
},
]
}
itemCount={2}
itemCount={3}
/>
`;
20 changes: 11 additions & 9 deletions src/components/GradesView/EditModal/OverrideTable/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,20 @@ export const OverrideTable = () => {

if (hide) { return null; }

const tableData = [
...data,
{
adjustedGrade: <AdjustedGradeInput />,
date: formatDateForDisplay(new Date()),
reason: <ReasonInput />,
},
];

return (
<DataTable
columns={columns}
data={[
...data,
{
adjustedGrade: <AdjustedGradeInput />,
date: formatDateForDisplay(new Date()),
reason: <ReasonInput />,
},
]}
itemCount={data.length}
data={tableData}
itemCount={tableData.length}
/>
);
};
Expand Down

0 comments on commit 13433e9

Please sign in to comment.