Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
chore: update package
Browse files Browse the repository at this point in the history
  • Loading branch information
AruSeito committed Apr 16, 2024
1 parent 49f133f commit 8bd5f42
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,18 @@ const MobileInputArea: FC<IInputAreaProps> = ({
chatUploadStoreRef.current.deleteFileDetailInfo(item.queryID)
continue
}
const fileID = await uploadChatFile(
const uploadRes = await uploadChatFile(
item.queryID,
file,
abortController.signal,
chatUploadStoreRef.current,
)

if (!!fileID) {
if (!!uploadRes) {
const res = {
fileName: fileName,
contentType: file.type,
fileID,
fileID: uploadRes.id,
}
setKnowledgeFiles((prev) => {
const currentItems = [...prev]
Expand Down
6 changes: 3 additions & 3 deletions apps/agent/src/components/PreviewChat/InputArea/pc/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,18 +142,18 @@ const PCInputArea: FC<IInputAreaProps> = ({ isReceiving, onSendMessage }) => {
chatUploadStoreRef.current.deleteFileDetailInfo(item.queryID)
continue
}
const fileID = await uploadChatFile(
const uploadRes = await uploadChatFile(
item.queryID,
file,
abortController.signal,
chatUploadStoreRef.current,
)

if (!!fileID) {
if (!!uploadRes) {
const res = {
fileName: fileName,
contentType: file.type,
fileID,
fileID: uploadRes.id,
}
setKnowledgeFiles((prev) => {
const currentItems = [...prev]
Expand Down
2 changes: 1 addition & 1 deletion packages

0 comments on commit 8bd5f42

Please sign in to comment.