fix(frontend): Assignment wordt met taal uit locale i.p.v. juiste taal aangemaakt.
This commit is contained in:
parent
73ca508ff3
commit
8f1194a021
1 changed files with 6 additions and 3 deletions
|
@ -62,7 +62,10 @@
|
||||||
const { valid } = await form.value.validate();
|
const { valid } = await form.value.validate();
|
||||||
if (!valid) return;
|
if (!valid) return;
|
||||||
|
|
||||||
const lp = lpIsSelected.value ? route.query.hruid?.toString() : selectedLearningPath.value?.hruid;
|
const lp = lpIsSelected.value
|
||||||
|
? { hruid: route.query.hruid!.toString(), language: language.value }
|
||||||
|
: { hruid: selectedLearningPath.value!.hruid, language: selectedLearningPath.value!.language };
|
||||||
|
|
||||||
if (!lp) {
|
if (!lp) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -72,8 +75,8 @@
|
||||||
within: selectedClass.value?.id || "",
|
within: selectedClass.value?.id || "",
|
||||||
title: assignmentTitle.value,
|
title: assignmentTitle.value,
|
||||||
description: "",
|
description: "",
|
||||||
learningPath: lp,
|
learningPath: lp.hruid,
|
||||||
language: language.value,
|
language: lp.language,
|
||||||
deadline: null,
|
deadline: null,
|
||||||
groups: [],
|
groups: [],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue