Skip to content

Commit

Permalink
Merge pull request #588 from dev-protocol/feature/post-bug-fix
Browse files Browse the repository at this point in the history
Feature/post bug fix
  • Loading branch information
kazuyoshi80 authored Jul 23, 2024
2 parents 0c63410 + 0d43c61 commit a6c8844
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devprotocol/clubs-plugin-posts-voting",
"version": "0.8.7",
"version": "0.8.8",
"type": "module",
"description": "Template repository for using TypeScript",
"main": "dist/index.js",
Expand Down
4 changes: 4 additions & 0 deletions src/components/Voting/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ onSetup((post) => {
// Remove options that have not been filled in
options.value = options.value.filter((option) => option.poll !== undefined)
if (options.value.length === 0) {
return post
}
const poll: Poll = {
options: options.value.map((option) => {
return {
Expand Down

0 comments on commit a6c8844

Please sign in to comment.