Use a better way to clone the original status
This commit is contained in:
parent
4e68c1ca13
commit
a25d7fa276
1 changed files with 1 additions and 2 deletions
|
@ -88,8 +88,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