Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during creating a new chat when the panel is collapsed #71

Closed
r0x07k opened this issue Jul 31, 2024 · 1 comment · Fixed by #73
Closed

Error during creating a new chat when the panel is collapsed #71

r0x07k opened this issue Jul 31, 2024 · 1 comment · Fixed by #73

Comments

@r0x07k
Copy link
Contributor

r0x07k commented Jul 31, 2024

TC:

  1. Shrink the browser windows so the chat panel is collapsed to the hamburger icon.
  2. Click the icon, click "New chat"

AR:
Error is displayed.

image

Error:

Unhandled Runtime Error
TypeError: setMessages is not a function

Source
src\components\sidebar.tsx (117:13) @ setMessages

  115 |             router.push("/");
  116 |             // Clear messages
> 117 |             setMessages([]);
      |             ^
  118 |           }}
  119 |           variant="ghost"
  120 |           className="flex justify-between w-full h-14 text-sm xl:text-lg font-normal items-center "
@r0x07k
Copy link
Contributor Author

r0x07k commented Aug 26, 2024

I fixed it. The pull request has been created.

@jakobhoeg jakobhoeg linked a pull request Aug 28, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants