perf: gate

This commit is contained in:
archer
2025-05-30 17:02:49 +08:00
parent 81202c53a8
commit ded0383ac4
9 changed files with 80 additions and 59 deletions

View File

@@ -46,7 +46,7 @@ export const appWorkflow2Form = ({
chatConfig
}: {
nodes: StoreNodeItemType[];
chatConfig: AppChatConfigType;
chatConfig?: AppChatConfigType;
}) => {
const defaultAppForm = getDefaultAppForm();
const findInputValueByKey = (inputs: FlowNodeInputItemType[], key: string) => {
@@ -172,6 +172,10 @@ export const appWorkflow2Form = ({
}
});
if (chatConfig) {
defaultAppForm.chatConfig = chatConfig;
}
return defaultAppForm;
};