fix type: setChatSthore is async

This commit is contained in:
2025-01-08 01:18:24 +08:00
parent b68224b13b
commit 99e557c1a8
2 changed files with 3 additions and 3 deletions

View File

@@ -205,9 +205,9 @@ const LongInput = (props: {
<Textarea
className="h-24 w-full"
value={chatStore[props.field]}
onChange={(event: any) => {
onChange={async (event: any) => {
chatStore[props.field] = event.target.value;
setChatStore({ ...chatStore });
await setChatStore({ ...chatStore });
autoHeight(event.target);
}}
onKeyPress={(event: any) => {