From e507a51923afb06de7dd96fe6e45fe885aeb0c3a Mon Sep 17 00:00:00 2001 From: Zeeshan Ahmad Date: Wed, 3 Jan 2024 18:37:40 +0500 Subject: [PATCH] fix post template not working --- apps/builddao/widget/Compose.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/builddao/widget/Compose.jsx b/apps/builddao/widget/Compose.jsx index d0c24d2f..886eca24 100644 --- a/apps/builddao/widget/Compose.jsx +++ b/apps/builddao/widget/Compose.jsx @@ -6,10 +6,12 @@ if (draft === null) { } const [view, setView] = useState("editor"); -const [postContent, setPostContent] = useState(draft || props.template); +const [postContent, setPostContent] = useState(""); const [hideAdvanced, setHideAdvanced] = useState(true); const [labels, setLabels] = useState([]); +setPostContent(draft || props.template); + function generateUID() { const maxHex = 0xffffffff; const randomNumber = Math.floor(Math.random() * maxHex);