refactor(client): Do not mutate prop directly

Related #6595
This commit is contained in:
syuilo 2020-07-27 08:46:21 +09:00
parent b32737cdff
commit b5a1fdd4c7
5 changed files with 73 additions and 70 deletions

View file

@ -52,8 +52,8 @@ export default Vue.extend({
});
const prepend = note => {
const _note = JSON.parse(JSON.stringify(note)); // deepcopy
(this.$refs.tl as any).prepend(_note);
Object.freeze(note);
(this.$refs.tl as any).prepend(note);
this.$emit('note');