Use a better way to clone the original status
This commit is contained in:
parent
bd5e868483
commit
a1d6758caa
1 changed files with 1 additions and 2 deletions
|
@ -118,8 +118,7 @@ const ExtraButtons = {
|
||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
showStatusHistory () {
|
showStatusHistory () {
|
||||||
let originalStatus = {}
|
let originalStatus = { ...this.status }
|
||||||
Object.assign(originalStatus, this.status)
|
|
||||||
delete originalStatus.attachments
|
delete originalStatus.attachments
|
||||||
delete originalStatus.created_at
|
delete originalStatus.created_at
|
||||||
delete originalStatus.emojis
|
delete originalStatus.emojis
|
||||||
|
|
Loading…
Reference in a new issue