Skip to content

Commit

Permalink
Merge pull request #387 from DmytroAlipov/fix-second-opening-grade
Browse files Browse the repository at this point in the history
fix: "An unexpected error occurred" after second opening any grade
  • Loading branch information
arbrandes authored Apr 8, 2024
2 parents ef8e20f + 4e9270a commit c3823c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/GradesView/EditModal/OverrideTable/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const useOverrideTableData = () => {
const { formatMessage } = useIntl();

const hide = selectors.grades.useHasOverrideErrors();
const gradeOverrides = selectors.grades.useGradeData().gradeOverrideHistoryResults;
const gradeOverrides = selectors.grades.useGradeData().gradeOverrideHistoryResults || [];
const tableProps = {};
if (!hide) {
tableProps.columns = [
Expand Down

0 comments on commit c3823c3

Please sign in to comment.