diff options
| author | Sean King <seanking2919@protonmail.com> | 2022-06-26 17:41:21 -0600 |
|---|---|---|
| committer | Sean King <seanking2919@protonmail.com> | 2022-06-26 17:41:21 -0600 |
| commit | 6f4b57e84559871f8c59f968d5cf17f2971e74c3 (patch) | |
| tree | 6e9fcb23c75de7a00fbe695fe99a41b678e97b5c | |
| parent | 8c7f4ab481db86306b2cedca9e54d24cf8f0ebe8 (diff) | |
Use a better way to clone the original status
| -rw-r--r-- | src/components/extra_buttons/extra_buttons.js | 3 |
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 |
