Skip to content
Snippets Groups Projects
Unverified Commit f530b523 authored by MeiMei's avatar MeiMei Committed by GitHub
Browse files

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

parent 9b9b6ade
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment