Skip to content

Commit

Permalink
add key
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyin committed Jan 4, 2025
1 parent 7f67566 commit 82f4e37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/review/ContestableQuestion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="daisy-card-body">
<h3 class="daisy-card-title">Previous Question Contested ...</h3>
<p>{{ q.badQuestionReason }}</p>
<QuestionDisplay :bare-question="q.quizeQuestion.bareQuestion" :disabled="true" />
<QuestionDisplay :bare-question="q.quizeQuestion.bareQuestion" :disabled="true" :key="q.quizeQuestion.id"/>
</div>
</div>
<p v-if="currentQuestionLegitMessage" class="daisy-text-warning daisy-mb-4">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/review/QuestionChoices.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<ol class="choices daisy-flex daisy-flex-wrap daisy-flex-row daisy-justify-start daisy-list-none daisy-p-0" v-if="choices && choices.length > 0">
<ol class="choices daisy-flex daisy-flex-wrap daisy-flex-row daisy-justify-start daisy-list-none daisy-p-0" v-if="choices && choices.length > 0">
<li
class="choice daisy-w-[46%] daisy-min-h-[80px] daisy-m-[2%] sm:daisy-w-full"
v-for="(choice, index) in choices"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/review/QuestionDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ const stemHtml = computed(() => {
const submitAnswer = async (answerData: AnswerDTO) => {
emits("answer", answerData)
}
</script>
</script>

0 comments on commit 82f4e37

Please sign in to comment.