Преглед изворни кода

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…
Откажи
Сачувај