diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2018-09-07 00:02:55 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2018-09-07 00:02:55 +0900 |
| commit | 00d79487cd89f3cae675ecc0392c47ba547b69a5 (patch) | |
| tree | a55b9cf9240fce4ca853d78e004dac75f8c06002 /src/client/app/common/views/components | |
| parent | Add concat function (#2640) (diff) | |
| download | misskey-00d79487cd89f3cae675ecc0392c47ba547b69a5.tar.gz misskey-00d79487cd89f3cae675ecc0392c47ba547b69a5.tar.bz2 misskey-00d79487cd89f3cae675ecc0392c47ba547b69a5.zip | |
Add erase function (#2641)
Diffstat (limited to 'src/client/app/common/views/components')
| -rw-r--r-- | src/client/app/common/views/components/poll-editor.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/app/common/views/components/poll-editor.vue b/src/client/app/common/views/components/poll-editor.vue index 115c934c8b..30d9799fec 100644 --- a/src/client/app/common/views/components/poll-editor.vue +++ b/src/client/app/common/views/components/poll-editor.vue @@ -20,6 +20,7 @@ <script lang="ts"> import Vue from 'vue'; +import { erase } from '../../../../../prelude/array'; export default Vue.extend({ data() { return { @@ -53,7 +54,7 @@ export default Vue.extend({ get() { return { - choices: this.choices.filter(choice => choice != '') + choices: erase('', this.choices) } }, |