Commit 7810f710 authored by Matija Obreza's avatar Matija Obreza

Merge branch '756-divtree-accession-list' into 'master'

Fix: DivTree: Accession list

Closes #756

See merge request genesys-pgr/genesys-ui!734
parents 4d5578e1 e8557b52
......@@ -11,6 +11,7 @@ import Page, { IPageRequest } from '@genesys/client/model/Page';
import OpResponse from '@genesys/client/model/OpResponse';
import DiversityTreeCreator from '@genesys/client/model/DiversityTreeCreator';
import RepositoryFile from '@genesys/client/model/repository/RepositoryFile';
import { dereferenceReferences2 } from '@genesys/client/utilities';
const URL_CREATE = `/api/v1/div-tree`;
const URL_UPDATE = `/api/v1/div-tree`;
......@@ -109,7 +110,10 @@ class DiversityTreeService {
url: apiUrl,
method: 'GET',
...content,
}).then(({ data }) => data as Page<DiversityTreeAccessionRef>);
}).then(({ data }) => {
dereferenceReferences2(data.content, DiversityTreeAccessionRef.DEREFERENCES);
return data as Page<DiversityTreeAccessionRef>;
});
}
/**
......
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