瀏覽代碼

fix: no current code caused code generation show error (#24086)

tags/1.8.0
Joel 2 月之前
父節點
當前提交
f5033c5a0e
No account linked to committer's email address

+ 2
- 0
web/app/components/app/configuration/config/code-generator/get-code-generator-res.tsx 查看文件

@@ -142,6 +142,8 @@ export const GetCodeGeneratorResModal: FC<IGetCodeGeneratorResProps> = (
ideal_output: ideaOutput,
language: languageMap[codeLanguages] || 'javascript',
})
if(!currentCode)
res.modified = (res as any).code

if (error) {
Toast.notify({

Loading…
取消
儲存