diff --git a/client/src/pages/studentSubmission.vue b/client/src/pages/studentSubmission.vue index caa8747f..b24c8d89 100644 --- a/client/src/pages/studentSubmission.vue +++ b/client/src/pages/studentSubmission.vue @@ -219,6 +219,11 @@ final: updatedSubmissionFeedback.final }); + if (updatedSubmissionFeedback.text) { + // text is only being set on create and on turing in, then we'll update the cache with it. Otherwise, we'll trust the local state, as to not overwrite the input field + data.studentSubmission.submissionFeedback.text = updatedSubmissionFeedback.text; + } + store.writeQuery({query, variables, data}); } }