mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 19:09:21 +08:00
fix: no current code caused code generation show error (#24086)
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user