From 29bbf61e7912092f9a7631448f243f24c14cb83d Mon Sep 17 00:00:00 2001 From: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> Date: Wed, 4 Sep 2024 12:00:16 -0400 Subject: [PATCH] HPCC-32597 ECL Watch v9 fix search results WU tab fixes an uncaught JS exception when viewing the WU tab of the global search results Signed-off-by: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> --- esp/src/src-react/components/Workunits.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp/src/src-react/components/Workunits.tsx b/esp/src/src-react/components/Workunits.tsx index ab47cf34673..5826e790dde 100644 --- a/esp/src/src-react/components/Workunits.tsx +++ b/esp/src/src-react/components/Workunits.tsx @@ -294,7 +294,7 @@ export const Workunits: React.FunctionComponent = ({ }, [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;