From 4a44d5c5978bff7d650f3119622c2035bebf78b9 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Sat, 3 Sep 2022 03:57:42 +0530 Subject: [PATCH 1/2] 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 ( From ebf7edf4763325685becb4a630eb1cae2d04abca Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Sat, 3 Sep 2022 04:38:08 +0530 Subject: [PATCH 2/2] fix(ui) - metadata in session --- frontend/app/duck/customField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/duck/customField.js b/frontend/app/duck/customField.js index d77987d05..dfd8dbf12 100644 --- a/frontend/app/duck/customField.js +++ b/frontend/app/duck/customField.js @@ -46,7 +46,7 @@ const reducer = (state = initialState, action = {}) => { addElementToFiltersMap(FilterCategory.METADATA, item.key); addElementToLiveFiltersMap(FilterCategory.METADATA, item.key); }); - return state; + return state.set('list', List(action.data).map(CustomField)) case FETCH_SOURCES_SUCCESS: return state.set(