feat: Capture task executor null value exception #3409 (#3468)

### 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)
This commit is contained in:
balibabu 2024-11-18 19:06:52 +08:00 committed by GitHub
parent 01c2712941
commit 50f7b7e0a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,14 +59,13 @@ const TaskBarChat = ({ data }: IProps) => {
const firstItem = data[0];
const lastItem = data[data.length - 1];
const domain = [firstItem.now, lastItem.now];
const domain = [firstItem?.now, lastItem?.now];
return (
<Flex key={key} className={styles.taskBar} vertical>
<div className="flex gap-8">
<b className={styles.taskBarTitle}>ID: {key}</b>
<b className={styles.taskBarTitle}>Lag: {lastItem.lag}</b>
<b className={styles.taskBarTitle}>Pending: {lastItem.pending}</b>
<b className={styles.taskBarTitle}>Lag: {lastItem?.lag}</b>
<b className={styles.taskBarTitle}>Pending: {lastItem?.pending}</b>
</div>
<ResponsiveContainer>
<BarChart data={data}>