diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2020-07-07 11:31:24 +0300 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2020-07-07 11:31:24 +0300 |
| commit | 84d728b9708fbb64f20de1f65f9bb1af7f426d59 (patch) | |
| tree | 8b8d8c9341d016f6b8047b186af387003c3ce294 | |
| parent | e3991db5c45c06a6102ae1576614af5b58af0103 (diff) | |
fix issue on posting another status
| -rw-r--r-- | src/components/post_status_form/post_status_form.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 48c3615d..18f02eba 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -230,7 +230,8 @@ const PostStatusForm = { files: [], visibility: newStatus.visibility, contentType: newStatus.contentType, - poll: {} + poll: {}, + mediaDescriptions: {} } this.pollFormVisible = false this.$refs.mediaUpload.clearFile() @@ -240,7 +241,7 @@ const PostStatusForm = { el.style.height = 'auto' el.style.height = undefined this.error = null - this.previewStatus() + if (this.preview) this.previewStatus() } else { this.error = data.error } |
