fix: image.enable

This commit is contained in:
StyleZhang 2024-09-26 14:39:56 +08:00
parent a7d53abba9
commit 2a0b30de5c
3 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ const ChatWrapper = () => {
parent_message_id: last_answer?.id || getLastAnswer(chatListRef.current)?.id || null,
}
if (appConfig?.file_upload?.image.enabled && files?.length)
if (appConfig?.file_upload?.image?.enabled && files?.length)
data.files = files
handleSend(

View File

@ -156,7 +156,7 @@ const Answer: FC<AnswerProps> = ({
)
}
{
allFiles?.length && (
!!allFiles?.length && (
<FileList
className='my-1'
files={allFiles}

View File

@ -77,7 +77,7 @@ const ChatWrapper = () => {
parent_message_id: last_answer?.id || getLastAnswer(chatListRef.current)?.id || null,
}
if (appConfig?.file_upload?.image.enabled && files?.length)
if (appConfig?.file_upload?.image?.enabled && files?.length)
data.files = files
handleSend(