Fix editing or deleting and redrafting polls in 4.3 (#36036)
Some checks failed
Check i18n / check-i18n (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (ruby) (push) Has been cancelled
Check formatting / lint (push) Has been cancelled
JavaScript Linting / lint (push) Has been cancelled
JavaScript Testing / test (push) Has been cancelled
Ruby Testing / build (production) (push) Has been cancelled
Ruby Testing / build (test) (push) Has been cancelled
Ruby Testing / test (.ruby-version) (push) Has been cancelled
Ruby Testing / test (3.1) (push) Has been cancelled
Ruby Testing / test (3.2) (push) Has been cancelled
Ruby Testing / test (3.4) (push) Has been cancelled
Ruby Testing / Libvips tests (.ruby-version) (push) Has been cancelled
Ruby Testing / Libvips tests (3.1) (push) Has been cancelled
Ruby Testing / Libvips tests (3.2) (push) Has been cancelled
Ruby Testing / Libvips tests (3.4) (push) Has been cancelled
Ruby Testing / End to End testing (.ruby-version) (push) Has been cancelled
Ruby Testing / End to End testing (3.1) (push) Has been cancelled
Ruby Testing / End to End testing (3.2) (push) Has been cancelled
Ruby Testing / End to End testing (3.4) (push) Has been cancelled
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Has been cancelled
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:8.10.2) (push) Has been cancelled
Ruby Testing / Elastic Search integration testing (.ruby-version, opensearchproject/opensearch:2) (push) Has been cancelled
Ruby Testing / Elastic Search integration testing (3.1, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Has been cancelled
Ruby Testing / Elastic Search integration testing (3.2, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Has been cancelled
Ruby Testing / Elastic Search integration testing (3.4, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Has been cancelled

This commit is contained in:
Claire 2025-09-05 12:17:02 +02:00 committed by GitHub
parent 6b78be274b
commit 055be70c59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -504,7 +504,7 @@ export default function compose(state = initialState, action) {
} }
if (action.status.get('poll')) { if (action.status.get('poll')) {
let options = ImmutableList(action.status.get('poll').options.map(x => x.title)); let options = action.status.getIn(['poll', 'options']).map(x => x.get('title'));
if (options.size < action.maxOptions) { if (options.size < action.maxOptions) {
options = options.push(''); options = options.push('');
} }
@ -538,7 +538,7 @@ export default function compose(state = initialState, action) {
} }
if (action.status.get('poll')) { if (action.status.get('poll')) {
let options = ImmutableList(action.status.get('poll').options.map(x => x.title)); let options = action.status.getIn(['poll', 'options']).map(x => x.get('title'));
if (options.size < action.maxOptions) { if (options.size < action.maxOptions) {
options = options.push(''); options = options.push('');
} }