Use the server setting to get the max number of poll options in UI (#29490)
This commit is contained in:
1 parent
6984f94044
commit
b9722dfe2b
3 files changed
+8
-6
No files matched your search
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user