mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: add icon to graph nodes #918 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -150,7 +150,7 @@ export const useSendSharedMessage = (
|
||||
|
||||
const sendMessage = useCallback(
|
||||
async (message: string, id?: string) => {
|
||||
const res: Response = await send({
|
||||
const res = await send({
|
||||
conversation_id: id ?? conversationId,
|
||||
quote: false,
|
||||
messages: [
|
||||
@ -162,12 +162,7 @@ export const useSendSharedMessage = (
|
||||
],
|
||||
});
|
||||
|
||||
if (res?.status === 200) {
|
||||
// const data = await fetchConversation(conversationId);
|
||||
// if (data.retcode === 0) {
|
||||
// setCurrentConversation(data.data);
|
||||
// }
|
||||
} else {
|
||||
if (res && (res?.response.status !== 200 || res?.data?.retcode !== 0)) {
|
||||
// cancel loading
|
||||
setValue(message);
|
||||
removeLatestMessage();
|
||||
|
||||
Reference in New Issue
Block a user