Skip to content

Commit

Permalink
remove superfluous route
Browse files Browse the repository at this point in the history
  • Loading branch information
MaHaWo committed Dec 18, 2024
1 parent 9bea28d commit 04c6dd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/lib/components/ChildrenFeedback.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
type ValidationError,
getDetailedFeedbackForAnswersession,
getExpiredMilestoneAnswerSessions,
getMilestoneGroupsForAnswersession,
getMilestonegroupsForSession,
getSummaryFeedbackForAnswersession,
} from "$lib/client";
import Breadcrumbs from "$lib/components/Navigation/Breadcrumbs.svelte";
Expand Down Expand Up @@ -134,10 +134,10 @@ async function loadAnswersessions(): Promise<void> {
async function loadSummaryFeedback(relevant: number[]): Promise<void> {
for (const aid of relevant) {
console.log(" aid: ", aid);
const milestoneGroupResponse = await getMilestoneGroupsForAnswersession({
const milestoneGroupResponse = await getMilestonegroupsForSession({
path: {
answersession_id: Number(aid),
},
}
});
if (milestoneGroupResponse.error) {
Expand All @@ -147,7 +147,7 @@ async function loadSummaryFeedback(relevant: number[]): Promise<void> {
}
milestoneGroups[Number(aid)] = {};
for (const m of milestoneGroupResponse.data) {
for (const m of Object.values(milestoneGroupResponse.data)) {
milestoneGroups[Number(aid)][m.id] = m;
}
Expand Down

0 comments on commit 04c6dd1

Please sign in to comment.