balibabu
commited on
Commit
·
983d047
1
Parent(s):
9efd53f
feat: Capture task executor null value exception #3409 (#3468)
Browse files### What problem does this PR solve?
feat: Capture task executor null value exception #3409
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
web/src/pages/user-setting/setting-system/task-bar-chat.tsx
CHANGED
@@ -59,14 +59,13 @@ const TaskBarChat = ({ data }: IProps) => {
|
|
59 |
const firstItem = data[0];
|
60 |
const lastItem = data[data.length - 1];
|
61 |
|
62 |
-
const domain = [firstItem
|
63 |
-
|
64 |
return (
|
65 |
<Flex key={key} className={styles.taskBar} vertical>
|
66 |
<div className="flex gap-8">
|
67 |
<b className={styles.taskBarTitle}>ID: {key}</b>
|
68 |
-
<b className={styles.taskBarTitle}>Lag: {lastItem
|
69 |
-
<b className={styles.taskBarTitle}>Pending: {lastItem
|
70 |
</div>
|
71 |
<ResponsiveContainer>
|
72 |
<BarChart data={data}>
|
|
|
59 |
const firstItem = data[0];
|
60 |
const lastItem = data[data.length - 1];
|
61 |
|
62 |
+
const domain = [firstItem?.now, lastItem?.now];
|
|
|
63 |
return (
|
64 |
<Flex key={key} className={styles.taskBar} vertical>
|
65 |
<div className="flex gap-8">
|
66 |
<b className={styles.taskBarTitle}>ID: {key}</b>
|
67 |
+
<b className={styles.taskBarTitle}>Lag: {lastItem?.lag}</b>
|
68 |
+
<b className={styles.taskBarTitle}>Pending: {lastItem?.pending}</b>
|
69 |
</div>
|
70 |
<ResponsiveContainer>
|
71 |
<BarChart data={data}>
|