Skip to content

Commit

Permalink
Fix issue that prompt cannot be edited
Browse files Browse the repository at this point in the history
  • Loading branch information
bclswl0827 committed Feb 3, 2024
1 parent 8c07ac1 commit da52b8e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chatgemini",
"version": "0.4.9",
"version": "0.4.10",
"homepage": ".",
"private": true,
"dependencies": {
Expand Down
7 changes: 3 additions & 4 deletions src/components/Session.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,9 @@ export const Session = (props: SessionProps) => {
editState.state !== SessionEditState.Edit && (
<button
className="size-6 rounded-lg hover:bg-gray-200 flex justify-center items-center"
onClick={() => {
setTextAreaHeight(textAreaRef.current, 60, 200);
onEdit(index, SessionEditState.Edit, "");
}}
onClick={() =>
onEdit(index, SessionEditState.Edit, "")
}
>
<img src={editIcon} className="size-4" alt="" />
</button>
Expand Down

0 comments on commit da52b8e

Please sign in to comment.