Fix: Editing a poll will silently change it to a closed poll (#9809)
* add failing test case * dont reset poll disclosure on editing
This commit is contained in:
parent
8660293424
commit
9a8545bf34
2 changed files with 20 additions and 1 deletions
|
@ -138,7 +138,7 @@ export default class PollCreateDialog extends ScrollableBaseModal<IProps, IState
|
|||
const pollStart = PollStartEvent.from(
|
||||
this.state.question.trim(),
|
||||
this.state.options.map((a) => a.trim()).filter((a) => !!a),
|
||||
this.state.kind,
|
||||
this.state.kind.name,
|
||||
).serialize();
|
||||
|
||||
if (!this.props.editingMxEvent) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue