Skip to content

Commit

Permalink
MISC: code cleanup (QuestionEditor.vue)
Browse files Browse the repository at this point in the history
  • Loading branch information
pymike00 authored Apr 26, 2023
1 parent 54bd6a3 commit 7eea74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vite-frontend/src/views/QuestionEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default {
const endpoint = `${endpoints["questionsCRUD"]}${to.params.slug}/`;
try {
const response = await axios.get(endpoint);
return next((vm) => (vm.questionBody = response.data.content));
return next(vm => vm.questionBody = response.data.content);
} catch (error) {
console.log(error.response);
alert(error.response.statusText);
Expand Down

0 comments on commit 7eea74c

Please sign in to comment.