kopia lustrzana https://github.com/elk-zone/elk
fix(ui): wrong polls are removed (#2720)
rodzic
42aeb8fa35
commit
28514e956d
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue