Skip to content

Commit

Permalink
fix: ts (#2621)
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu authored Sep 5, 2024
1 parent 7fed4d6 commit 38f4795
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ const RenderOutput = () => {
<AIResponseBox
key={key}
value={value}
index={i}
chat={histories[1]}
isLastChild={true}
isChatting={isChatting}
questionGuides={[]}
/>
);
})}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Markdown from '@/components/Markdown';
import { CodeClassNameEnum } from '@/components/Markdown/utils';
import {
Accordion,
AccordionButton,
Expand All @@ -17,7 +16,7 @@ import {
ToolModuleResponseItemType,
UserChatItemValueItemType
} from '@fastgpt/global/core/chat/type';
import React, { useMemo } from 'react';
import React from 'react';
import MyIcon from '@fastgpt/web/components/common/Icon';
import Avatar from '@fastgpt/web/components/common/Avatar';
import { SendPromptFnType } from '../ChatContainer/ChatBox/type';
Expand All @@ -31,7 +30,7 @@ type props = {
value: UserChatItemValueItemType | AIChatItemValueItemType;
isLastChild: boolean;
isChatting: boolean;
onSendMessage: SendPromptFnType;
onSendMessage?: SendPromptFnType;
};

const RenderText = React.memo(function RenderText({
Expand Down Expand Up @@ -139,7 +138,7 @@ const RenderInteractive = React.memo(
}: {
isChatting: boolean;
interactive: InteractiveNodeResponseItemType;
onSendMessage: SendPromptFnType;
onSendMessage?: SendPromptFnType;
chatHistories: ChatSiteItemType[];
}) {
return (
Expand Down

0 comments on commit 38f4795

Please sign in to comment.