summaryrefslogtreecommitdiff
path: root/src/client/app/common/views/components
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2018-09-07 00:02:55 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2018-09-07 00:02:55 +0900
commit00d79487cd89f3cae675ecc0392c47ba547b69a5 (patch)
treea55b9cf9240fce4ca853d78e004dac75f8c06002 /src/client/app/common/views/components
parentAdd concat function (#2640) (diff)
downloadmisskey-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.vue3
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)
}
},