소스 검색

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)
tags/v0.14.0
balibabu 11 달 전
부모
커밋
50f7b7e0a3
No account linked to committer's email address
1개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 3
    4
      web/src/pages/user-setting/setting-system/task-bar-chat.tsx

+ 3
- 4
web/src/pages/user-setting/setting-system/task-bar-chat.tsx 파일 보기

const firstItem = data[0]; const firstItem = data[0];
const lastItem = data[data.length - 1]; const lastItem = data[data.length - 1];


const domain = [firstItem.now, lastItem.now];

const domain = [firstItem?.now, lastItem?.now];
return ( return (
<Flex key={key} className={styles.taskBar} vertical> <Flex key={key} className={styles.taskBar} vertical>
<div className="flex gap-8"> <div className="flex gap-8">
<b className={styles.taskBarTitle}>ID: {key}</b> <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> </div>
<ResponsiveContainer> <ResponsiveContainer>
<BarChart data={data}> <BarChart data={data}>

Loading…
취소
저장