diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue index 00bfde50..7310dfde 100644 --- a/components/publish/PublishWidget.vue +++ b/components/publish/PublishWidget.vue @@ -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() }