commit: 6f4b57e84559871f8c59f968d5cf17f2971e74c3
parent 8c7f4ab481db86306b2cedca9e54d24cf8f0ebe8
Author: Sean King <seanking2919@protonmail.com>
Date: Sun, 26 Jun 2022 17:41:21 -0600
Use a better way to clone the original status
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/components/extra_buttons/extra_buttons.js b/src/components/extra_buttons/extra_buttons.js
@@ -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