Fix warnings
This commit is contained in:
parent
a3e16dc107
commit
0e3916a41c
|
|
@ -88,6 +88,7 @@ const onSubmit = async () => {
|
|||
const loadAttendanceData = async () => {
|
||||
resetState();
|
||||
// with changing variables `useQuery` does not seem to work correctly
|
||||
if (state.attendanceCourseSelected) {
|
||||
const res = await graphqlClient.query(
|
||||
ATTENDANCE_CHECK_QUERY,
|
||||
{
|
||||
|
|
@ -106,6 +107,7 @@ const loadAttendanceData = async () => {
|
|||
if (attendanceUserList.length !== 0) {
|
||||
state.attendanceSaved = true;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
function editAgain() {
|
||||
|
|
@ -122,7 +124,8 @@ watch(
|
|||
() => {
|
||||
log.debug("attendanceCourseSelected changed", state.attendanceCourseSelected);
|
||||
loadAttendanceData();
|
||||
}
|
||||
},
|
||||
{ immediate: true }
|
||||
);
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ from vbv_lernwelt.core.utils import StringIDField
|
|||
|
||||
class CourseBaseSerializer(ItWagtailBaseSerializer):
|
||||
id = StringIDField()
|
||||
content_assignment_id = StringIDField()
|
||||
course = SerializerMethodField()
|
||||
course_category = SerializerMethodField()
|
||||
circles = SerializerMethodField()
|
||||
|
|
|
|||
Loading…
Reference in New Issue