aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Post.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-11-20 00:05:45 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:59 +0300
commit952530f370a0d7c2d74a9c080bbe37e69745782a (patch)
treeb1be1c22eaa2a09ee86eeb854f76a54ea04e3e28 /vnext/src/ui/Post.js
parentec0551528d09ab35345aba254d5ce9cd8f04f1ab (diff)
Fix useSearchParams() usage
Diffstat (limited to 'vnext/src/ui/Post.js')
-rw-r--r--vnext/src/ui/Post.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/ui/Post.js b/vnext/src/ui/Post.js
index 74b74ffc..8fc753b4 100644
--- a/vnext/src/ui/Post.js
+++ b/vnext/src/ui/Post.js
@@ -17,7 +17,7 @@ export default function Post() {
const [visitor] = useVisitor();
let draftMessage = (location.state || {}).data || {};
let [draft, setDraft] = useState(draftMessage.body);
- let params = useSearchParams();
+ let [params] = useSearchParams();
let postMessage = (template) => {
const { attach, body } = template;
const postAction = draftMessage.mid ? update(draftMessage.mid, 0, body) : post(body, attach);