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