TLにNote追加時にdeepcopyする (#6275)

This commit is contained in:
MeiMei 2020-04-18 16:05:39 +09:00 committed by GitHub
parent 9b9b6ade64
commit f530b5237d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');