Skip to content

Commit

Permalink
Merge pull request #2323 from nextcloud/fix/2307
Browse files Browse the repository at this point in the history
fix: update values in QuestionMultiple component correctly when `isUnique === true`
  • Loading branch information
Chartman123 committed Sep 16, 2024
2 parents 6edbc24 + f903caa commit b6d7eaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Questions/QuestionMultiple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ export default {
},
onChange(value) {
this.$emit('update:values', this.isUnique ? [value] : value)
this.$emit('update:values', this.isUnique ? [value].flat() : value)
},
/**
Expand All @@ -421,7 +421,7 @@ export default {
)
if (value.length > pureValue.length) {
// make sure to add the cached test on re-enable
// make sure to add the cached text on re-enable
this.onChange([
...pureValue,
`${QUESTION_EXTRASETTINGS_OTHER_PREFIX}${this.cachedOtherAnswerText}`,
Expand Down

0 comments on commit b6d7eaf

Please sign in to comment.