Skip to content

Commit 8a19016

Browse files
authored
Merge pull request #247 from makeopensource/99-problem-appears
fixed problems not showing up when created
2 parents e04e005 + 3740b01 commit 8a19016

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

devU-client/src/components/pages/forms/assignments/assignmentFormPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ const AddAssignmentModal = ({ open, onClose }: Props) => {
143143
custom={{control: () => ({border:'none', padding:'3px 0', backgroundColor: 'var(--input-field-background)'}),
144144
placeholder: () => ({color: 'var(--input-field-label)'}),
145145
input: () => ({fontSize: '14px', backgroundColor: 'var(--input-field-background)'}),
146-
option: (_, state) => ({ backgroundColor: state.isFocused ? 'var(--grey-darker)' : 'var(--input-field-background)',}),
146+
option: (_, state) => ({ backgroundColor: state.isFocused ? 'var(--list-item-background-hover)' : 'var(--input-field-background)',}),
147147
menu: () => ({ backgroundColor: 'var(--input-field-background)', overflow:'hidden'}),
148148
singleValue: () => ({fontSize: '14px'})}}
149149
value={currentCategory ?? undefined}/>

devU-client/src/components/pages/forms/assignments/assignmentUpdatePage.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,13 @@ const AssignmentUpdatePage = () => {
107107
setFiles([...files, file])
108108
}
109109
console.log(files)
110-
111110
}
112111
}
113112

114-
const fetchAssignmentProblems = () => {
115-
RequestService.get(`/api/course/${courseId}/assignment/${assignmentId}/non-container-auto-graders`)
113+
const fetchAssignmentProblems = async () => {
114+
await RequestService.get(`/api/course/${courseId}/assignment/${assignmentId}/non-container-auto-graders`)
116115
.then((res) => { setNonContainerAutograders(res) })
117-
RequestService.get(`/api/course/${courseId}/assignment/${currentAssignmentId}/assignment-problems`)
116+
await RequestService.get(`/api/course/${courseId}/assignment/${currentAssignmentId}/assignment-problems`)
118117
.then((res) => { setAssignmentProblems(res)})
119118
}
120119

0 commit comments

Comments
 (0)