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

View File

@@ -341,13 +341,7 @@ export const toolSetData2FlowNodeIO = ({
};
export const formatEditorVariablePickerIcon = (
variables: {
id: string;
key: string;
label: string;
type?: `${VariableInputEnum}`;
required?: boolean;
}[]
variables: { key: string; label: string; type?: `${VariableInputEnum}`; required?: boolean }[]
): EditorVariablePickerType[] => {
return variables.map((item) => ({
...item,

View File

@@ -1,7 +1,6 @@
import type { WorkflowIOValueTypeEnum } from '@fastgpt/global/core/workflow/constants';
export type EditorVariablePickerType = {
id: string;
key: string;
label: string;
required?: boolean;