Skip to content

Commit

Permalink
fix: when the window heigh is not sufficient to get show data query w…
Browse files Browse the repository at this point in the history
…ill fail
  • Loading branch information
Bilal Meddah authored and bilalesi committed Dec 1, 2023
1 parent 9b2d0db commit 4a6f0ce
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/shared/containers/ResourceListContainer.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -152,7 +149,7 @@ const ResourceListContainer: React.FunctionComponent<{
'@id': list.query.q,
},
},
],
].filter(query => !isEmpty(query)),
},
},
{
Expand All @@ -168,7 +165,7 @@ const ResourceListContainer: React.FunctionComponent<{
_self: list.query.q,
},
},
],
].filter(query => !isEmpty(query)),
},
},
],
Expand Down

0 comments on commit 4a6f0ce

Please sign in to comment.