Merge pull request #18315 from ramonlsouza/issue-18307

fix: Multiple selection polling not showing entirely a long option line
This commit is contained in:
Ramón Souza 2023-07-13 15:35:57 -03:00 committed by GitHub
commit 06da3c1700
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@ import { safeMatch } from '/imports/utils/string-utils';
const POLL_SETTINGS = Meteor.settings.public.poll;
const MAX_CUSTOM_FIELDS = POLL_SETTINGS.maxCustom;
const MAX_CHAR_LIMIT = POLL_SETTINGS.maxTypedAnswerLength;
const getCurrentPresentation = (podId) => Presentations.findOne({
podId,
@ -120,7 +121,6 @@ const parseCurrentSlideContent = (yesValue, noValue, abstentionValue, trueValue,
if (optionsPoll) {
optionsPoll = optionsPoll.map((opt) => {
const MAX_CHAR_LIMIT = 30;
const formattedOpt = opt.substring(0, MAX_CHAR_LIMIT);
optionsWithLabels.push(formattedOpt);
return `\r${opt[0]}.`;