Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Ambrosini <marcoambrosini@icloud.com>2022-08-24 14:21:03 +0300
committerMarco Ambrosini <marcoambrosini@icloud.com>2022-08-26 11:57:32 +0300
commit871e7e25bfd2b23d5b2d005509c41cb4a17e641f (patch)
treeb722068193c01e014f30c3bce1059929640f667a /src/components
parentfffb22a789c02b6594a7f81e608e2bff2c9f6d12 (diff)
Do not compute checkboxradioswitch type if poll is not loaded
Signed-off-by: Marco Ambrosini <marcoambrosini@icloud.com>
Diffstat (limited to 'src/components')
-rw-r--r--src/components/MessagesList/MessagesGroup/Message/MessagePart/Poll.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/MessagesList/MessagesGroup/Message/MessagePart/Poll.vue b/src/components/MessagesList/MessagesGroup/Message/MessagePart/Poll.vue
index 4812940c3..1e41e7a15 100644
--- a/src/components/MessagesList/MessagesGroup/Message/MessagePart/Poll.vue
+++ b/src/components/MessagesList/MessagesGroup/Message/MessagePart/Poll.vue
@@ -223,7 +223,11 @@ export default {
},
checkboxRadioSwitchType() {
- return this.poll.maxVotes === 0 ? 'checkbox' : 'radio'
+ if (this.pollLoaded) {
+ return this.poll.maxVotes === 0 ? 'checkbox' : 'radio'
+ } else {
+ return undefined
+ }
},
canSubmitVote() {