mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-16 01:09:01 +08:00
This reverts commit f000fbb19d.
This commit is contained in:
-4
@@ -174,7 +174,6 @@ const RenderHttpMethodAndUrl = React.memo(function RenderHttpMethodAndUrl({
|
||||
return (
|
||||
feConfigs?.externalProviderWorkflowVariables?.map((item) => ({
|
||||
key: item.key,
|
||||
id: item.key,
|
||||
label: item.name
|
||||
})) || []
|
||||
);
|
||||
@@ -295,7 +294,6 @@ export function RenderHttpProps({
|
||||
return (
|
||||
feConfigs?.externalProviderWorkflowVariables?.map((item) => ({
|
||||
key: item.key,
|
||||
id: item.key,
|
||||
label: item.name
|
||||
})) || []
|
||||
);
|
||||
@@ -500,7 +498,6 @@ const RenderForm = ({
|
||||
input: FlowNodeInputItemType;
|
||||
variables: EditorVariableLabelPickerType[];
|
||||
externalProviderWorkflowVariables: {
|
||||
id: string;
|
||||
key: string;
|
||||
label: string;
|
||||
}[];
|
||||
@@ -687,7 +684,6 @@ const RenderBody = ({
|
||||
typeInput: FlowNodeInputItemType | undefined;
|
||||
variables: EditorVariableLabelPickerType[];
|
||||
externalProviderWorkflowVariables: {
|
||||
id: string;
|
||||
key: string;
|
||||
label: string;
|
||||
}[];
|
||||
|
||||
-1
@@ -67,7 +67,6 @@ const NodeVariableUpdate = ({ data, selected }: NodeProps<FlowNodeItemType>) =>
|
||||
const externalProviderWorkflowVariables = useMemo(() => {
|
||||
return (
|
||||
feConfigs?.externalProviderWorkflowVariables?.map((item) => ({
|
||||
id: item.key,
|
||||
key: item.key,
|
||||
label: item.name
|
||||
})) || []
|
||||
|
||||
-1
@@ -51,7 +51,6 @@ const CommonInputForm = ({ item, nodeId }: RenderInputProps) => {
|
||||
const externalVariables = useMemo(() => {
|
||||
return (
|
||||
feConfigs?.externalProviderWorkflowVariables?.map((item) => ({
|
||||
id: item.key,
|
||||
key: item.key,
|
||||
label: item.name
|
||||
})) || []
|
||||
|
||||
+2
-8
@@ -247,10 +247,7 @@ const EditModal = ({ onClose, ...props }: RenderInputProps & { onClose: () => vo
|
||||
</Flex>
|
||||
|
||||
<PromptEditor
|
||||
variables={quoteTemplateVariables.map((item) => ({
|
||||
...item,
|
||||
id: item.key
|
||||
}))}
|
||||
variables={quoteTemplateVariables}
|
||||
minH={160}
|
||||
title={t('common:core.app.Quote templates')}
|
||||
placeholder={t('workflow:quote_content_placeholder')}
|
||||
@@ -271,10 +268,7 @@ const EditModal = ({ onClose, ...props }: RenderInputProps & { onClose: () => vo
|
||||
/>
|
||||
</Flex>
|
||||
<PromptEditor
|
||||
variables={quotePromptVariables.map((item) => ({
|
||||
...item,
|
||||
id: item.key
|
||||
}))}
|
||||
variables={quotePromptVariables}
|
||||
title={t('common:core.app.Quote prompt')}
|
||||
minH={300}
|
||||
placeholder={t('workflow:quote_prompt_tip', {
|
||||
|
||||
@@ -107,7 +107,6 @@ export const getEditorVariables = ({
|
||||
const nodeVariables = currentNode.inputs
|
||||
.filter((input) => input.canEdit)
|
||||
.map((item) => ({
|
||||
id: item.key,
|
||||
key: item.key,
|
||||
label: item.label,
|
||||
parent: {
|
||||
@@ -138,7 +137,6 @@ export const getEditorVariables = ({
|
||||
)
|
||||
.map((output) => {
|
||||
return {
|
||||
id: output.id,
|
||||
label: t((output.label as any) || ''),
|
||||
key: output.id,
|
||||
parent: {
|
||||
|
||||
Reference in New Issue
Block a user