mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: Correctly format select options for group poll by fields (#9131)
This commit is contained in:
parent
f2b95c1918
commit
763a065df9
@ -454,7 +454,9 @@ createWidget("discourse-poll-info", {
|
||||
|
||||
function transformUserFieldToLabel(fieldName) {
|
||||
let transformed = fieldName.split("_").filter(Boolean);
|
||||
transformed[0] = classify(transformed[0]);
|
||||
if (transformed.length > 1) {
|
||||
transformed[0] = classify(transformed[0]);
|
||||
}
|
||||
return transformed.join(" ");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user