Skip to content

Commit

Permalink
Merge pull request #4070 from supersimple33/fix/braces
Browse files Browse the repository at this point in the history
fix: Braces were missing
  • Loading branch information
zbeyens authored Feb 11, 2025
2 parents 83d0ad2 + 1fa18ab commit 8ef247a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/slimy-shrimps-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@udecode/plate-ai": patch
---

fix: ai chat loading
2 changes: 1 addition & 1 deletion packages/ai/src/react/ai-chat/hooks/useChatChunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const useChatChunk = ({
onChunk: (chunk: { isFirst: boolean; nodes: TText[]; text: string }) => void;
onFinish?: ({ content }: { content: string }) => void;
}) => {
const isLoading = usePluginOption(
const { isLoading } = usePluginOption(
{ key: 'aiChat' } as AIChatPluginConfig,
'chat'
);
Expand Down

0 comments on commit 8ef247a

Please sign in to comment.