Skip to content

Commit

Permalink
AMD-694-latest [frontend] fix: flag undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
yp.wu authored and yp.wu committed Mar 22, 2024
1 parent 5fdfeac commit 735cd94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/hooks/reportMapper/reworkMapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const reworkMapper = (reworkTimeResponse: ReworkTimeResponse) => {
const result: ReportDataWithTwoColumns[] = [];
Object.entries(REWORK_TIME_MAPPING).map(([key, value], index) => {
reworkTimeResponse[key as keyof ReworkTimeResponse] !== null &&
reworkTimeResponse[key as keyof ReworkTimeResponse] !== undefined &&
result.push({
id: index,
name: getRowName(value, reworkTimeResponse.reworkState),
Expand Down

0 comments on commit 735cd94

Please sign in to comment.