Skip to content

Commit

Permalink
fix: reload assignment active status everytime submission count changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetojevic committed Nov 20, 2024
1 parent 857e86a commit 1d7efbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/assignment/assignment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const AssignmentComponent = () => {
refetchSubleft();
});
}
}, [lecture, assignment]);
}, [lecture, assignment, submissions.length]);

if (
isLoadingAssignment ||
Expand Down
4 changes: 1 addition & 3 deletions src/components/util/submission-logs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ export const SubmissionLogs = (props: SubmissionLogsProps) => {
maxHeight: '80%',
margin: '5% auto',
padding: '16px',
overflowY: 'auto',
fontFamily: "'Roboto Mono', monospace"
overflowY: 'auto'
}}
>
<CardHeader title="Logs" />
Expand All @@ -113,7 +112,6 @@ export const SubmissionLogs = (props: SubmissionLogsProps) => {
)}
</CardContent>

{/* Card Actions */}
<CardActions style={{ justifyContent: 'flex-end' }}>
<Button variant="contained" onClick={props.onClose}>
Close
Expand Down

0 comments on commit 1d7efbf

Please sign in to comment.