Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/src/store/requests/datasets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { API_URL } from '../../globals'
import { Dataset, DatasetVersions, Datasets } from '../../types/api'
import { genericFetchWrapper } from './index'

export const getDatasets = async (namespace: string, limit = 25, offset = 0) => {
export const getDatasets = async (namespace: string, limit = 20, offset = 0) => {
const url = `${API_URL}/namespaces/${encodeURIComponent(
namespace
)}/datasets?limit=${limit}&offset=${offset}`
Expand Down
7 changes: 6 additions & 1 deletion web/src/store/sagas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@ export function* fetchDatasetsSaga() {
while (true) {
try {
const { payload } = yield take(FETCH_DATASETS)
const datasets: Datasets = yield call(getDatasets, payload.namespace)
const datasets: Datasets = yield call(
getDatasets,
payload.namespace,
payload.limit,
payload.offset
)
yield put(fetchDatasetsSuccess(datasets.datasets, datasets.totalCount))
} catch (e) {
yield put(applicationError('Something went wrong while fetching dataset runs'))
Expand Down