Fix editing or deleting and redrafting polls in 4.3 (#36036)

This commit is contained in:
Claire
2025-09-05 12:17:02 +02:00
committed by GitHub
parent 6b78be274b
commit 055be70c59

View File

@@ -504,7 +504,7 @@ export default function compose(state = initialState, action) {
}
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) {
options = options.push('');
}
@@ -538,7 +538,7 @@ export default function compose(state = initialState, action) {
}
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) {
options = options.push('');
}