Skip to content

An AI-powered search engine with a generative UI

Update getUIStateFromAIState to handle Chat type in actions.tsx

Yoshiki Miurace07f6aa1b37
diff --git a/app/actions.tsx b/app/actions.tsx
index 2e4dffc1..683a0618 100644
--- a/app/actions.tsx
+++ b/app/actions.tsx
@@ -272,7 +272,7 @@ export const AI = createAI<AIState, UIState>({
const aiState = getAIState()
if (aiState) {
- const uiState = getUIStateFromAIState(aiState)
+ const uiState = getUIStateFromAIState(aiState as Chat)
return uiState
} else {
return