Use a better way to clone the original status

This commit is contained in:
Sean King 2022-06-26 17:41:21 -06:00 committed by FloatingGhost
parent bd5e868483
commit a1d6758caa

View file

@ -118,8 +118,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