diff options
author | Vitaly Takmazov | 2022-11-04 22:05:49 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:58 +0300 |
commit | f1a484cc662174717118bff1274aa473f5fa6ad9 (patch) | |
tree | 1302954eb5eb8fbbe1e7b3997edf0afe3536d603 /vnext/src/ui/Post.js | |
parent | ee9f960cdcb3974f5bb9780665deddb9191a9227 (diff) |
Fix editing
Diffstat (limited to 'vnext/src/ui/Post.js')
-rw-r--r-- | vnext/src/ui/Post.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/ui/Post.js b/vnext/src/ui/Post.js index 9795092c..fbd55675 100644 --- a/vnext/src/ui/Post.js +++ b/vnext/src/ui/Post.js @@ -17,7 +17,7 @@ export default function Post() { const location = useLocation(); const navigate = useNavigate(); const [visitor] = useVisitor(); - let draftMessage = (location.state || {}).draft || {}; + let draftMessage = (location.state || {}).data || {}; let [draft, setDraft] = useState(draftMessage.body); let params = qs.parse(window.location.search.substring(1)); let postMessage = (template) => { |