ui: Fill correctly the field containing a link to the exercice
This commit is contained in:
parent
af1fe1e6d8
commit
0c7eecf315
1 changed files with 6 additions and 0 deletions
|
|
@ -9,6 +9,12 @@
|
||||||
|
|
||||||
export let exercice = null;
|
export let exercice = null;
|
||||||
export let issue = { };
|
export let issue = { };
|
||||||
|
|
||||||
|
$: if (exercice != null) {
|
||||||
|
issue.id_exercice = exercice.id;
|
||||||
|
} else {
|
||||||
|
issue.id_exercice = undefined;
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<form on:submit|preventDefault>
|
<form on:submit|preventDefault>
|
||||||
|
|
|
||||||
Reference in a new issue