miurla / morphic

An AI-powered search engine with a generative UI
https://morphic.sh
Apache License 2.0
5.06k stars 1.18k forks source link

aiState.get.messages is not iterable #109

Closed freedomtrain closed 2 months ago

freedomtrain commented 2 months ago

Receiving the following when clicking of the + for a new query

Unhandled Runtime Error

Error: aiState.get.messages is not iterable Source

app/actions.tsx (33:23) @ messages

31 | // Get the messages from the state, filter out the tool messages 32 | const messages: ExperimentalMessage[] = [

33 | ...(aiState.get().messages as any[]) | ^ 34 | ].filter( 35 | message => 36 | message.role !== 'tool' &&