mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-19 12:06:42 +08:00
fix: Fixed an issue where the first message would be displayed when sending the second message #2625 (#2626)
### What problem does this PR solve? fix: Fixed an issue where the first message would be displayed when sending the second message #2625 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [ ] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe):
This commit is contained in:
@ -117,7 +117,7 @@ const MessageInput = ({
|
||||
file,
|
||||
}) => {
|
||||
let nextConversationId: string = conversationId;
|
||||
if (createConversationBeforeUploadDocument && !conversationId) {
|
||||
if (createConversationBeforeUploadDocument) {
|
||||
const creatingRet = await createConversationBeforeUploadDocument(
|
||||
file.name,
|
||||
);
|
||||
@ -234,8 +234,14 @@ const MessageInput = ({
|
||||
>
|
||||
<Button
|
||||
type={'text'}
|
||||
disabled={disabled}
|
||||
icon={
|
||||
<SvgIcon name="paper-clip" width={18} height={22}></SvgIcon>
|
||||
<SvgIcon
|
||||
name="paper-clip"
|
||||
width={18}
|
||||
height={22}
|
||||
disabled={disabled}
|
||||
></SvgIcon>
|
||||
}
|
||||
></Button>
|
||||
</Upload>
|
||||
|
||||
Reference in New Issue
Block a user