feat: add icon to graph nodes #918 (#1117)

### 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:
balibabu
2024-06-11 18:01:19 +08:00
committed by GitHub
parent 8902d92d0e
commit ff5ea266d2
8 changed files with 91 additions and 46 deletions

View File

@ -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();