From 5ec1b924d25fe3cf13de51573181ed915d8bf2b6 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 9 Apr 2019 10:21:16 +0300 Subject: Fix thread message preload --- vnext/src/components/Thread.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vnext') 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); -- cgit v1.2.3