Skip to content

Commit 61b3f48

Browse files
committed
fix: pass index to update:answer emit in createLocalAnswer
The emit was missing this.index, causing updateAnswer in QuestionMultipleMixin to receive undefined as the answer parameter. Consistent with the other update:answer emit. Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
1 parent c3af988 commit 61b3f48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Questions/AnswerInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ export default {
351351
this.queue.pause()
352352
try {
353353
// Dispatched for creation. Marked as synced
354-
this.$emit('update:answer', answer)
354+
this.$emit('update:answer', this.index, answer)
355355
const newAnswer = await this.createAnswer(answer)
356356
357357
// Forward changes, but use current answer.text to avoid erasing

0 commit comments

Comments
 (0)