Skip to content

fix proverbs state #4

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix proverbs state #4

wants to merge 1 commit into from

Conversation

lawwu
Copy link

@lawwu lawwu commented Aug 6, 2025

When sending a chat that updates the proverbs state, there is an error in the frontend:

 Error: Failed to execute action addProverb: TypeError: state.proverbs is not iterable
      at createConsoleError (http://localhost:3000/_next/static/chunks/c412d_next_dist_client_b5ec818c._.js:882:71)
      at handleConsoleError (http://localhost:3000/_next/static/chunks/c412d_next_dist_client_b5ec818c._.js:1058:54)
      at console.error (http://localhost:3000/_next/static/chunks/c412d_next_dist_client_b5ec818c._.js:1223:57)
      at useChat.useAsyncCallback[runChatCompletion].executeActionFromMessage
  (http://localhost:3000/_next/static/chunks/b0ba2_%40copilotkit_react-core_dist_a0202b27._.js:3115:61)
      at http://localhost:3000/_next/static/chunks/b0ba2_%40copilotkit_react-core_dist_a0202b27._.js:3452:13
      at Generator.throw (<anonymous>)
      at rejected (http://localhost:3000/_next/static/chunks/b0ba2_%40copilotkit_react-core_dist_a0202b27._.js:106:37)

This fixes the issue.

@tylerslaton
Copy link
Contributor

Thanks @lawwu!

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 this pull request may close these issues.

2 participants