Skip to content

Commit

Permalink
HPCC-32597 ECL Watch v9 fix search results WU tab
Browse files Browse the repository at this point in the history
fixes an uncaught JS exception when viewing the WU tab of the global
search results

Signed-off-by: Jeremy Clements <[email protected]>
  • Loading branch information
jeclrsg committed Sep 4, 2024
1 parent e8c2224 commit 29bbf61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp/src/src-react/components/Workunits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export const Workunits: React.FunctionComponent<WorkunitsProps> = ({
}, [selection]);

const renderRowTimings = React.useCallback((props: IDetailsRowProps, size: { readonly width: number; readonly height: number; }) => {
if (showTimeline && props) {
if (showTimeline && props?.item?.timings) {
const total = props.item.timings.page.end - props.item.timings.page.start;
const startPct = 100 - (props.item.timings.start - props.item.timings.page.start) / total * 100;
const endPct = 100 - (props.item.timings.end - props.item.timings.page.start) / total * 100;
Expand Down

0 comments on commit 29bbf61

Please sign in to comment.