Skip to content

Commit 5aaa80e

Browse files
Removed the view 50 datasets options (#238)
Removed the view 50 datasets options Slight fix to which view option is displayed
1 parent 055bf14 commit 5aaa80e

File tree

3 files changed

+10
-28
lines changed

3 files changed

+10
-28
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-portal-ui",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"private": true,
55
"dependencies": {
66
"@fortawesome/fontawesome-svg-core": "~6.4.2",

src/components/browse/dataset/datasetList.tsx

+7-25
Original file line numberDiff line numberDiff line change
@@ -94,31 +94,13 @@ const DatasetList = (props: DataSetProps) => {
9494
<PaginatedDataset />
9595
</Col>
9696
<Col xs={4} md={2} className="ps-0 ps-lg-4 pe-0">
97-
{(props.page - 1) * 50 <= props.dsCount ? (
98-
<Form.Select
99-
value={props.limit}
100-
onChange={(event) => handleSelect(event)}
101-
>
102-
<option value="10">10</option>
103-
<option value="25">25</option>
104-
<option value="50">50</option>
105-
</Form.Select>
106-
) : (props.page - 1) * 25 <= props.dsCount ? (
107-
<Form.Select
108-
value={props.limit}
109-
onChange={(event) => handleSelect(event)}
110-
>
111-
<option value="10">10</option>
112-
<option value="25">25</option>
113-
</Form.Select>
114-
) : (
115-
<Form.Select
116-
value={props.limit}
117-
onChange={(event) => handleSelect(event)}
118-
>
119-
<option value="10">10</option>
120-
</Form.Select>
121-
)}
97+
<Form.Select
98+
value={props.limit}
99+
onChange={(event) => handleSelect(event)}
100+
>
101+
<option value="10">10</option>
102+
{props.dsCount >= 25 ? <option value="25">25</option> : ""}
103+
</Form.Select>
122104
</Col>
123105
</Row>
124106
</>

0 commit comments

Comments
 (0)