mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-25 17:23:07 +02:00
Update post-form.vue
Close #4792 Co-Authored-By: tamaina <tamaina@hotmail.co.jp>
This commit is contained in:
parent
7b29e7cf7e
commit
e8c8f67a09
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ export default Vue.extend({
|
||||||
const draft = JSON.parse(localStorage.getItem('drafts') || '{}')[this.draftId];
|
const draft = JSON.parse(localStorage.getItem('drafts') || '{}')[this.draftId];
|
||||||
if (draft) {
|
if (draft) {
|
||||||
this.text = draft.data.text;
|
this.text = draft.data.text;
|
||||||
this.files = draft.data.files;
|
this.files = (draft.data.files || []).filter(e => e);
|
||||||
if (draft.data.poll) {
|
if (draft.data.poll) {
|
||||||
this.poll = true;
|
this.poll = true;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|
Loading…
Reference in a new issue