mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
chore: update type definition to resolve lint error in Base usage at text-editor.tsx (#10083)
This commit is contained in:
parent
0bdae34b5e
commit
6c25131964
|
@ -26,7 +26,7 @@ type Props = {
|
|||
isFocus: boolean
|
||||
isInNode?: boolean
|
||||
onGenerated?: (prompt: string) => void
|
||||
codeLanguages: CodeLanguage
|
||||
codeLanguages?: CodeLanguage
|
||||
fileList?: FileEntity[]
|
||||
showFileList?: boolean
|
||||
showCodeGenerator?: boolean
|
||||
|
@ -78,7 +78,7 @@ const Base: FC<Props> = ({
|
|||
e.stopPropagation()
|
||||
}}>
|
||||
{headerRight}
|
||||
{showCodeGenerator && (
|
||||
{showCodeGenerator && codeLanguages && (
|
||||
<div className='ml-1'>
|
||||
<CodeGeneratorButton onGenerated={onGenerated} codeLanguages={codeLanguages}/>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user