Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
newfish-cmyk committed Jul 11, 2024
1 parent 084bd3e commit c2d08fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/app/src/components/ChatBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ const ChatBox = (
const { handleSubmit: handlePluginSubmit, control: pluginControl, reset } = pluginForm;

const currentPluginInputs = useMemo(() => {
if (appType !== AppTypeEnum.plugin) {
return [];
}
return chatHistories.length > 0
? JSON.parse(chatHistories[0]?.value[0].text?.content || '{}').format
: pluginInputs;
Expand Down

0 comments on commit c2d08fb

Please sign in to comment.