Commit 94ec732d authored by Matija Obreza's avatar Matija Obreza

Fix: Dataset reducers and missing return in updateAccessionRefs

parent 9793cde1
Pipeline #7758 passed with stages
in 6 minutes and 51 seconds
......@@ -72,7 +72,7 @@ function listMyDatasets(page?, results?, sortBy?: string[], filter?: string | Da
};
}
function loadAccessions(uuid: string, page: number = 0, results: number = 50) {
function loadAccessions(uuid: string, page: number = 0, results: number = 100) {
return (dispatch, getState) => {
return DatasetService.listAccessions(uuid, { page, size: results })
......
......@@ -68,7 +68,7 @@ function datasetsDashboard(state = INITIAL_STATE, action: { type?: string, paylo
accessionRefs: { $set: accessionRefs },
}) :
update(state, {
accessions: {
accessionRefs: {
content: {$push: accessionRefs.content},
number: {$set: accessionRefs.number},
last: {$set: accessionRefs.last},
......
......@@ -72,7 +72,7 @@ function datasetsPublic(state = INITIAL_STATE, action: { type?: string, payload?
accessionRefs: { $set: accessionRefs },
}) :
update(state, {
accessions: {
accessionRefs: {
content: {$push: accessionRefs.content},
number: {$set: accessionRefs.number},
last: {$set: accessionRefs.last},
......
......@@ -27,7 +27,7 @@ interface IAccessionsListStep extends React.ClassAttributes<any> {
class AccessionsListStep extends React.Component<IAccessionsListStep, any> {
protected static needs = [
({ params: { uuid } }) => loadAccessions(uuid, 0, 50),
({ params: { uuid } }) => loadAccessions(uuid, 0, 100),
];
public constructor(props: any) {
......@@ -43,7 +43,7 @@ class AccessionsListStep extends React.Component<IAccessionsListStep, any> {
protected updateAccessionRefs = (accessionRefs: AccessionRef[]) => {
const {dataset, updateDatasetAccessionRefs} = this.props;
updateDatasetAccessionRefs(dataset, accessionRefs);
return updateDatasetAccessionRefs(dataset, accessionRefs);
}
protected gotoStep = (id) => () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment