mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 17:05:22 +03:00
fix(ui): wrong polls are removed (#2720)
This commit is contained in:
parent
42aeb8fa35
commit
28514e956d
1 changed files with 3 additions and 1 deletions
|
@ -87,7 +87,9 @@ function editPollOptionDraft(event: Event, index: number) {
|
|||
}
|
||||
|
||||
function deletePollOption(index: number) {
|
||||
draft.value.params.poll!.options = draft.value.params.poll!.options.slice().splice(index, 1)
|
||||
const newPollOptions = draft.value.params.poll!.options.slice()
|
||||
newPollOptions.splice(index, 1)
|
||||
draft.value.params.poll!.options = newPollOptions
|
||||
trimPollOptions()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue