From 4a44d5c5978bff7d650f3119622c2035bebf78b9 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Sat, 3 Sep 2022 03:57:42 +0530 Subject: [PATCH] change(ui) - error check for sessionId --- frontend/app/components/ui/ErrorDetails/ErrorDetails.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/ui/ErrorDetails/ErrorDetails.tsx b/frontend/app/components/ui/ErrorDetails/ErrorDetails.tsx index fe2467f0a..8f8ba65b4 100644 --- a/frontend/app/components/ui/ErrorDetails/ErrorDetails.tsx +++ b/frontend/app/components/ui/ErrorDetails/ErrorDetails.tsx @@ -24,7 +24,9 @@ function ErrorDetails(props: Props) { }; useEffect(() => { - props.fetchErrorStackList(sessionId, error.errorId); + if (sessionId) { + props.fetchErrorStackList(sessionId, error.errorId); + } }, []); return (