@agentiffai/design 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/copilotkit/index.js
CHANGED
|
@@ -1700,7 +1700,7 @@ function createAssistantMessageAdapterWithErrorReporting(onReportIssue, Thinking
|
|
|
1700
1700
|
const errorContext = useMemo(() => detectErrorInMessage(content), [content]);
|
|
1701
1701
|
const chatSnippet = useMemo(() => {
|
|
1702
1702
|
if (!errorContext.hasError) return "";
|
|
1703
|
-
return buildChatSnippet(visibleMessages, content);
|
|
1703
|
+
return buildChatSnippet(visibleMessages ?? [], content);
|
|
1704
1704
|
}, [visibleMessages, content, errorContext.hasError]);
|
|
1705
1705
|
const actions = useMemo(() => {
|
|
1706
1706
|
if (!errorContext.hasError || !onReportIssue || isGenerating) {
|