aboutsummaryrefslogtreecommitdiff
path: root/src/components/extra_buttons/extra_buttons.js
diff options
context:
space:
mode:
authorSean King <seanking2919@protonmail.com>2022-06-26 17:41:21 -0600
committerSean King <seanking2919@protonmail.com>2022-06-26 17:41:21 -0600
commit6f4b57e84559871f8c59f968d5cf17f2971e74c3 (patch)
tree6e9fcb23c75de7a00fbe695fe99a41b678e97b5c /src/components/extra_buttons/extra_buttons.js
parent8c7f4ab481db86306b2cedca9e54d24cf8f0ebe8 (diff)
Use a better way to clone the original status
Diffstat (limited to 'src/components/extra_buttons/extra_buttons.js')
-rw-r--r--src/components/extra_buttons/extra_buttons.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/extra_buttons/extra_buttons.js b/src/components/extra_buttons/extra_buttons.js
index 92eb63b0..5ddb7f0f 100644
--- 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