Skip to content

Commit

Permalink
fix post template not working
Browse files Browse the repository at this point in the history
  • Loading branch information
itexpert120 committed Jan 3, 2024
1 parent fa77ceb commit e507a51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/builddao/widget/Compose.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e507a51

Please sign in to comment.