Use a better way to clone the original status

This commit is contained in:
Sean King 2022-06-26 17:41:21 -06:00
parent 8c7f4ab481
commit 6f4b57e845
No known key found for this signature in database
GPG Key ID: 510C52BACD6E7257
1 changed files with 1 additions and 2 deletions

View File

@ -88,8 +88,7 @@ const ExtraButtons = {
}))
},
showStatusHistory () {
let originalStatus = {}
Object.assign(originalStatus, this.status)
let originalStatus = { ...this.status }
delete originalStatus.attachments
delete originalStatus.created_at
delete originalStatus.emojis