From afd233dd69aae355256578130c9f545bf749f2b1 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 28 Oct 2022 17:13:55 +0300 Subject: Fix loading thread state --- vnext/src/ui/Thread.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vnext/src/ui/Thread.js') diff --git a/vnext/src/ui/Thread.js b/vnext/src/ui/Thread.js index 0f0f88e3..5c9412d6 100644 --- a/vnext/src/ui/Thread.js +++ b/vnext/src/ui/Thread.js @@ -21,7 +21,7 @@ const emptyMessage = {}; export default function Thread(props) { const location = useLocation(); const params = useParams(); - const [message, setMessage] = useState((location.state || {}).msg || {}); + const [message, setMessage] = useState((location.state || {}).data || {}); const [replies, setReplies] = useState([]); const [loading, setLoading] = useState(false); const [active, setActive] = useState(0); @@ -112,7 +112,7 @@ export default function Thread(props) { )) : ( - <> + <> { Array(loaders).fill().map((it, i) => ) } -- cgit v1.2.3