From e8c8f67a0921f3a411767b397db69ea5c1380507 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 24 Apr 2019 20:47:47 +0900 Subject: [PATCH] Update post-form.vue Close #4792 Co-Authored-By: tamaina --- src/client/app/desktop/views/components/post-form.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index 7d3593d9c9..1f33ea01fe 100644 --- a/src/client/app/desktop/views/components/post-form.vue +++ b/src/client/app/desktop/views/components/post-form.vue @@ -228,7 +228,7 @@ export default Vue.extend({ const draft = JSON.parse(localStorage.getItem('drafts') || '{}')[this.draftId]; if (draft) { this.text = draft.data.text; - this.files = draft.data.files; + this.files = (draft.data.files || []).filter(e => e); if (draft.data.poll) { this.poll = true; this.$nextTick(() => {