Skip to content

Commit

Permalink
Update answers without reloading app
Browse files Browse the repository at this point in the history
  • Loading branch information
maxidragon committed Oct 10, 2023
1 parent ac289af commit 0f72da5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/Components/Questions/QuestionRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const QuestionRow = (props: {
</TableRow>
</TableHead>
<TableBody>
{editedQuestion.answers.map(
{row.answers.map(
(answerRow, answerNumber: number) => (
<AnswerRow
key={answerRow.id}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Components/Questions/Questions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Questions = (props: { quizId: number; isPublic: boolean }) => {
};

const handleCreateAnswer = async () => {
await fetchQuestions();
await fetchQuestions();
};

return (
Expand Down

0 comments on commit 0f72da5

Please sign in to comment.