diff options
Diffstat (limited to 'vnext/src/ui')
-rw-r--r-- | vnext/src/ui/Thread.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vnext/src/ui/Thread.js b/vnext/src/ui/Thread.js index cae601394..e469b8cfd 100644 --- a/vnext/src/ui/Thread.js +++ b/vnext/src/ui/Thread.js @@ -137,8 +137,9 @@ export default function Thread(props) { params.hash = hash; getMessages('/api/thread', params) .then(response => { + let updatedMessage = response.data.shift(); if (!message.mid) { - setMessage(response.data.shift()); + setMessage(updatedMessage); } setReplies(response.data); setLoading(false); |