diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-21 11:16:56 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-21 11:16:56 +0900 |
| commit | 47dd30d3b2eb1ada91b621e5201add5a014b587d (patch) | |
| tree | c74bf037be646b8461c4bd0fd9d0c7c9cf328fe0 /src/client/components | |
| parent | Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff) | |
| download | sharkey-47dd30d3b2eb1ada91b621e5201add5a014b587d.tar.gz sharkey-47dd30d3b2eb1ada91b621e5201add5a014b587d.tar.bz2 sharkey-47dd30d3b2eb1ada91b621e5201add5a014b587d.zip | |
fix(client): ノートの「削除して編集」をするとアンケートの選択肢が[object Object]になる問題を修正
Fix #7037
Diffstat (limited to 'src/client/components')
| -rw-r--r-- | src/client/components/post-form.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/components/post-form.vue b/src/client/components/post-form.vue index 221dc74313..657053cc93 100644 --- a/src/client/components/post-form.vue +++ b/src/client/components/post-form.vue @@ -339,7 +339,12 @@ export default defineComponent({ this.cw = init.cw; this.useCw = init.cw != null; if (init.poll) { - this.poll = init.poll; + this.poll = { + choices: init.poll.choices.map(x => x.text), + multiple: init.poll.multiple, + expiresAt: init.poll.expiresAt, + expiredAfter: init.poll.expiredAfter, + }; } this.visibility = init.visibility; this.localOnly = init.localOnly; |