feat: Fetch conversation list by @tanstack/react-query and displays error message that task_executor does not exist #2088 (#2112)

### What problem does this PR solve?

feat: Fetch conversation list by @tanstack/react-query
feat: Displays error message that task_executor does not exist

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-08-27 14:45:17 +08:00
committed by GitHub
parent 1d88b197fb
commit 61d2a74b25
11 changed files with 350 additions and 460 deletions

5
web/src/utils/chat.ts Normal file
View File

@ -0,0 +1,5 @@
import { EmptyConversationId } from '@/constants/chat';
export const isConversationIdExist = (conversationId: string) => {
return conversationId !== EmptyConversationId && conversationId !== '';
};