Commit 5153ffad by Oven Committed by GitHub

fix:sandbox misspelling (#5073)

parent 02dfbda1
...@@ -17,7 +17,7 @@ export enum SandboxCodeTypeEnum { ...@@ -17,7 +17,7 @@ export enum SandboxCodeTypeEnum {
js = 'js', js = 'js',
py = 'py' py = 'py'
} }
export const SNADBOX_CODE_TEMPLATE = { export const SANDBOX_CODE_TEMPLATE = {
[SandboxCodeTypeEnum.js]: JS_TEMPLATE, [SandboxCodeTypeEnum.js]: JS_TEMPLATE,
[SandboxCodeTypeEnum.py]: PY_TEMPLATE [SandboxCodeTypeEnum.py]: PY_TEMPLATE
}; };
...@@ -20,7 +20,7 @@ import { ...@@ -20,7 +20,7 @@ import {
JS_TEMPLATE, JS_TEMPLATE,
PY_TEMPLATE, PY_TEMPLATE,
SandboxCodeTypeEnum, SandboxCodeTypeEnum,
SNADBOX_CODE_TEMPLATE SANDBOX_CODE_TEMPLATE
} from '@fastgpt/global/core/workflow/template/system/sandbox/constants'; } from '@fastgpt/global/core/workflow/template/system/sandbox/constants';
import MySelect from '@fastgpt/web/components/common/MySelect'; import MySelect from '@fastgpt/web/components/common/MySelect';
import PopoverConfirm from '@fastgpt/web/components/common/MyPopover/PopoverConfirm'; import PopoverConfirm from '@fastgpt/web/components/common/MyPopover/PopoverConfirm';
...@@ -71,7 +71,7 @@ const NodeCode = ({ data, selected }: NodeProps<FlowNodeItemType>) => { ...@@ -71,7 +71,7 @@ const NodeCode = ({ data, selected }: NodeProps<FlowNodeItemType>) => {
key: item.key, key: item.key,
value: { value: {
...item, ...item,
value: SNADBOX_CODE_TEMPLATE[newLang] value: SANDBOX_CODE_TEMPLATE[newLang]
} }
}); });
})(); })();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment