Skip to content

Commit

Permalink
Fixed issue with unnecessary calls being made to the server
Browse files Browse the repository at this point in the history
  • Loading branch information
kreut committed Aug 3, 2023
1 parent 832a6db commit 8911aca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Middleware/SetAppVersionHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function handle($request, Closure $next)
//$app_version = env('VAPOR_COMMIT_HASH') ? env('VAPOR_COMMIT_HASH') : '1.0';
if(!$response instanceof StreamedResponse) {
//https://stackoverflow.com/questions/72060913/call-to-undefined-method-symfony-component-httpfoundation-streamedresponsehead
$response->header('appversion', '1.55');
$response->header('appversion', '1.56');
}
return $response;
}
Expand Down
6 changes: 5 additions & 1 deletion resources/js/pages/questions.view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
:no-close-on-esc="true"
size="xl"
hide-footer
@hidden="$emit('reloadCurrentAssignmentQuestions')"
@hidden="reloadAndRemoveQuestionEditorUpdatedAt"
>
<CreateQuestion :key="`question-to-edit-${questionToEdit.id}-${questionToEdit.question_revision_id}`"
:question-to-edit="questionToEdit"
Expand Down Expand Up @@ -3370,6 +3370,10 @@ export default {
getTechnologySrcDoc,
addGlow,
hideSubmitButtonsIfCannotSubmit,
reloadAndRemoveQuestionEditorUpdatedAt () {
this.$emit('reloadCurrentAssignmentQuestions')
clearInterval(window.currentQuestionEditorUpdatedAt)
},
async submitRemoveQuestion () {
let questionId = this.questions[this.currentPage - 1].id
try {
Expand Down

0 comments on commit 8911aca

Please sign in to comment.