From f530b5237d1cdec50ebbf6b60470505973fa9225 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sat, 18 Apr 2020 16:05:39 +0900 Subject: TLにNote追加時にdeepcopyする (#6275) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/components/timeline.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client') diff --git a/src/client/components/timeline.vue b/src/client/components/timeline.vue index 234ed6b07c..bd1901a624 100644 --- a/src/client/components/timeline.vue +++ b/src/client/components/timeline.vue @@ -50,7 +50,8 @@ export default Vue.extend({ }); const prepend = note => { - (this.$refs.tl as any).prepend(note); + const _note = JSON.parse(JSON.stringify(note)); // deepcopy + (this.$refs.tl as any).prepend(_note); if (this.sound) { this.$root.sound(note.userId === this.$store.state.i.id ? 'noteMy' : 'note'); -- cgit v1.2.3-freya