diff --git a/src/shared/containers/ResourceListContainer.tsx b/src/shared/containers/ResourceListContainer.tsx index 5d9e0a117..319d9788b 100644 --- a/src/shared/containers/ResourceListContainer.tsx +++ b/src/shared/containers/ResourceListContainer.tsx @@ -1,11 +1,8 @@ import * as React from 'react'; import { useHistory, useLocation } from 'react-router-dom'; import { useNexusContext } from '@bbp/react-nexus'; -import { - DEFAULT_ELASTIC_SEARCH_VIEW_ID, - ElasticSearchViewQueryResponse, - Resource, -} from '@bbp/nexus-sdk'; +import { DEFAULT_ELASTIC_SEARCH_VIEW_ID, Resource } from '@bbp/nexus-sdk'; +import { isEmpty } from 'lodash'; import ResourceListComponent, { ResourceBoardList, @@ -152,7 +149,7 @@ const ResourceListContainer: React.FunctionComponent<{ '@id': list.query.q, }, }, - ], + ].filter(query => !isEmpty(query)), }, }, { @@ -168,7 +165,7 @@ const ResourceListContainer: React.FunctionComponent<{ _self: list.query.q, }, }, - ], + ].filter(query => !isEmpty(query)), }, }, ], diff --git a/src/shared/containers/ResourceViewActionsContainer.tsx b/src/shared/containers/ResourceViewActionsContainer.tsx index 059a7a3d0..857786669 100644 --- a/src/shared/containers/ResourceViewActionsContainer.tsx +++ b/src/shared/containers/ResourceViewActionsContainer.tsx @@ -395,6 +395,64 @@ const ResourceViewActionsContainer: React.FC<{ {isInCart ? 'Remove from' : 'Add to'} Cart +