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 ( 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(