fix:sandbox misspelling (#5073)
Some checks failed
Deploy doc image to cf / deploy-production (push) Has been cancelled
Deploy doc image by kubeconfig / build-fastgpt-docs-images (push) Has been cancelled
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Has been cancelled
Deploy doc image by kubeconfig / update-docs-image (push) Has been cancelled

This commit is contained in:
Oven 2025-06-22 14:40:35 +08:00 committed by GitHub
parent 02dfbda1f8
commit 5153ffad59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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]
}
});
})();