mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-15 07:31:19 +00:00
compatible with old enums (#5219)
* compatible with old enums\ * add id
This commit is contained in:
@@ -341,7 +341,13 @@ export const toolSetData2FlowNodeIO = ({
|
||||
};
|
||||
|
||||
export const formatEditorVariablePickerIcon = (
|
||||
variables: { key: string; label: string; type?: `${VariableInputEnum}`; required?: boolean }[]
|
||||
variables: {
|
||||
id: string;
|
||||
key: string;
|
||||
label: string;
|
||||
type?: `${VariableInputEnum}`;
|
||||
required?: boolean;
|
||||
}[]
|
||||
): EditorVariablePickerType[] => {
|
||||
return variables.map((item) => ({
|
||||
...item,
|
||||
|
@@ -1,6 +1,7 @@
|
||||
import type { WorkflowIOValueTypeEnum } from '@fastgpt/global/core/workflow/constants';
|
||||
|
||||
export type EditorVariablePickerType = {
|
||||
id: string;
|
||||
key: string;
|
||||
label: string;
|
||||
required?: boolean;
|
||||
|
Reference in New Issue
Block a user