From 3806e76576d6f84247e0b2a2f74c44655a9478d1 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Thu, 28 Mar 2024 11:27:54 +0100 Subject: [PATCH] Revert "Reformat code" This reverts commit 2b3d0c6ebdcea6962af216192854c63fbda334d5. --- .../content-blocks/assignment/Assignment.vue | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/client/src/components/content-blocks/assignment/Assignment.vue b/client/src/components/content-blocks/assignment/Assignment.vue index e420ed44..13fe2c3f 100644 --- a/client/src/components/content-blocks/assignment/Assignment.vue +++ b/client/src/components/content-blocks/assignment/Assignment.vue @@ -115,6 +115,18 @@ graphql(` } `); +graphql(` + fragment AssignmentParts on AssignmentNode { + id + title + assignment + solution + submission { + ...SubmissionParts + } + } +`); + const { me } = getMe(); const { result, onResult } = useQuery( @@ -362,9 +374,9 @@ const saveInput = (answer: string) => { corrections.value = ''; unsaved.value = true; /* - 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 - */ + 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 + */ assignment.value.submission.text = answer; _save(assignment.value.submission);