Fix warnings

This commit is contained in:
Daniel Egger 2023-10-10 17:01:47 +02:00
parent a3e16dc107
commit 0e3916a41c
2 changed files with 21 additions and 17 deletions

View File

@ -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>

View File

@ -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()