diff options
author | 2019-04-09 10:21:16 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:54 +0300 | |
commit | 5ec1b924d25fe3cf13de51573181ed915d8bf2b6 (patch) | |
tree | 2cd27859b94478fa3204045ad6d2ceacd86f070c | |
parent | 592c0f08a4a2d81a8670331a69acb51a95ea7a3a (diff) |
Fix thread message preload
-rw-r--r-- | vnext/src/components/Thread.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js index 22972752..ba3fcfa9 100644 --- a/vnext/src/components/Thread.js +++ b/vnext/src/components/Thread.js @@ -80,7 +80,7 @@ Comment.propTypes = { }; export default function Thread(props) { - const [message, setMessage] = useState(props.location.state || {}); + const [message, setMessage] = useState(props.location.state.msg || {}); const [replies, setReplies] = useState([]); const [loading, setLoading] = useState(false); const [active, setActive] = useState(0); |