mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-17 23:15:54 +08:00
fix: image.enable
This commit is contained in:
parent
a7d53abba9
commit
2a0b30de5c
@ -75,7 +75,7 @@ const ChatWrapper = () => {
|
|||||||
parent_message_id: last_answer?.id || getLastAnswer(chatListRef.current)?.id || null,
|
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
|
data.files = files
|
||||||
|
|
||||||
handleSend(
|
handleSend(
|
||||||
|
@ -156,7 +156,7 @@ const Answer: FC<AnswerProps> = ({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
allFiles?.length && (
|
!!allFiles?.length && (
|
||||||
<FileList
|
<FileList
|
||||||
className='my-1'
|
className='my-1'
|
||||||
files={allFiles}
|
files={allFiles}
|
||||||
|
@ -77,7 +77,7 @@ const ChatWrapper = () => {
|
|||||||
parent_message_id: last_answer?.id || getLastAnswer(chatListRef.current)?.id || null,
|
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
|
data.files = files
|
||||||
|
|
||||||
handleSend(
|
handleSend(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user