Skip to content

Commit 84c706c

Browse files
committed
Fix missing dependency in useEffect hook.
1 parent f9ad312 commit 84c706c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/src/pages/points-sheet/overview/PointsOverview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function PointsOverview(): JSX.Element {
105105
} else {
106106
setGradings(new GradingList([]));
107107
}
108-
}, [tutorialId, setError]);
108+
}, [tutorialId, currentSheet, setError]);
109109

110110
async function handlePdfPreviewClicked(team: Team) {
111111
if (!currentSheet || !tutorialId) {

0 commit comments

Comments
 (0)