0
0
Fork 0

Use the server setting to get the max number of poll options in UI (#29490)

This commit is contained in:
Renaud Chaput 2024-03-11 10:13:35 +01:00 committed by GitHub
parent 6984f94044
commit b9722dfe2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 6 deletions

View file

@ -786,11 +786,12 @@ export function addPollOption(title) {
};
}
export function changePollOption(index, title) {
export function changePollOption(index, title, maxOptions) {
return {
type: COMPOSE_POLL_OPTION_CHANGE,
index,
title,
maxOptions,
};
}