CSR-762 Fix back glass bug
This commit is contained in:
parent
c70bbf665c
commit
bdefe44235
1 changed files with 3 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ export default ({
|
|||
name: "replaceOptionsQuestion",
|
||||
data(){
|
||||
return {
|
||||
replaceOptions: [],
|
||||
replaceOptions: this.isMultiSelect ? [] : "",
|
||||
}
|
||||
},
|
||||
props: {
|
||||
|
|
@ -46,7 +46,7 @@ export default ({
|
|||
updateSelectedValues() {
|
||||
// UPDATE SELECTEDVALUES IF ONLY ONE ANSWER
|
||||
if(Array.isArray(this.answersToDisplay) && this.answersToDisplay.length === 1) {
|
||||
this.selectedValues = [this.answersToDisplay[0].Name];
|
||||
this.selectedValues = this.isMultiSelect ? [this.answersToDisplay[0].Name] : this.answersToDisplay[0].Name;
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
@ -91,7 +91,7 @@ export default ({
|
|||
},
|
||||
shouldDisplayReplaceOptionsQuestion(shouldDisplayReplaceOptionsQuestion) {
|
||||
if (!shouldDisplayReplaceOptionsQuestion) {
|
||||
this.selectedValues = [];
|
||||
this.selectedValues = this.isMultiSelect ? [] : "";
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue