fix:sandbox misspelling (#5073)

This commit is contained in:
Oven
2025-06-22 14:40:35 +08:00
committed by GitHub
parent 02dfbda1f8
commit 5153ffad59
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ export enum SandboxCodeTypeEnum {
js = 'js',
py = 'py'
}
export const SNADBOX_CODE_TEMPLATE = {
export const SANDBOX_CODE_TEMPLATE = {
[SandboxCodeTypeEnum.js]: JS_TEMPLATE,
[SandboxCodeTypeEnum.py]: PY_TEMPLATE
};

View File

@@ -20,7 +20,7 @@ import {
JS_TEMPLATE,
PY_TEMPLATE,
SandboxCodeTypeEnum,
SNADBOX_CODE_TEMPLATE
SANDBOX_CODE_TEMPLATE
} from '@fastgpt/global/core/workflow/template/system/sandbox/constants';
import MySelect from '@fastgpt/web/components/common/MySelect';
import PopoverConfirm from '@fastgpt/web/components/common/MyPopover/PopoverConfirm';
@@ -71,7 +71,7 @@ const NodeCode = ({ data, selected }: NodeProps<FlowNodeItemType>) => {
key: item.key,
value: {
...item,
value: SNADBOX_CODE_TEMPLATE[newLang]
value: SANDBOX_CODE_TEMPLATE[newLang]
}
});
})();