Reformat code
This commit is contained in:
parent
e8d7402349
commit
2b3d0c6ebd
|
|
@ -115,18 +115,6 @@ graphql(`
|
||||||
}
|
}
|
||||||
`);
|
`);
|
||||||
|
|
||||||
const assignmentFragment = graphql(`
|
|
||||||
fragment AssignmentParts on AssignmentNode {
|
|
||||||
id
|
|
||||||
title
|
|
||||||
assignment
|
|
||||||
solution
|
|
||||||
submission {
|
|
||||||
...SubmissionParts
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`);
|
|
||||||
|
|
||||||
const { me } = getMe();
|
const { me } = getMe();
|
||||||
|
|
||||||
const { result, onResult } = useQuery(
|
const { result, onResult } = useQuery(
|
||||||
|
|
@ -374,9 +362,9 @@ const saveInput = (answer: string) => {
|
||||||
corrections.value = '';
|
corrections.value = '';
|
||||||
unsaved.value = true;
|
unsaved.value = true;
|
||||||
/*
|
/*
|
||||||
We update the assignment on this component, so the changes are reflected on it. The server does not return
|
We update the assignment on this component, so the changes are reflected on it. The server does not return
|
||||||
the updated entity, to prevent the UI to update when the user is entering his input
|
the updated entity, to prevent the UI to update when the user is entering his input
|
||||||
*/
|
*/
|
||||||
assignment.value.submission.text = answer;
|
assignment.value.submission.text = answer;
|
||||||
_save(assignment.value.submission);
|
_save(assignment.value.submission);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue