Sfoglia il codice sorgente

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

tags/1.8.0
Joel 2 mesi fa
parent
commit
f5033c5a0e
Nessun account collegato all'indirizzo email del committer

+ 2
- 0
web/app/components/app/configuration/config/code-generator/get-code-generator-res.tsx Vedi File

@@ -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…
Annulla
Salva