Revert "compatible with old enums (#5219)" (#5222)

This reverts commit f000fbb19d.
This commit is contained in:
Archer
2025-07-16 14:35:18 +08:00
committed by GitHub
parent d102adca59
commit 4275de96fd
12 changed files with 7 additions and 40 deletions
@@ -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;
}[];
@@ -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
})) || []
@@ -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
})) || []
@@ -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: {