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

View File

@ -70,9 +70,13 @@ const SystemInfo = () => {
key={key}
>
{key === 'task_executor' ? (
<TaskBarChat
data={info.elapsed as TaskExecutorElapsed}
></TaskBarChat>
info?.elapsed ? (
<TaskBarChat
data={info.elapsed as TaskExecutorElapsed}
></TaskBarChat>
) : (
<Text className={styles.error}>{info.error}</Text>
)
) : (
Object.keys(info)
.filter((x) => x !== 'status')