Commit e8557b52 authored by Oleksii Savran's avatar Oleksii Savran
Browse files

Fix: DivTree: Accession list

parent 4d5578e1
...@@ -11,6 +11,7 @@ import Page, { IPageRequest } from '@genesys/client/model/Page'; ...@@ -11,6 +11,7 @@ import Page, { IPageRequest } from '@genesys/client/model/Page';
import OpResponse from '@genesys/client/model/OpResponse'; import OpResponse from '@genesys/client/model/OpResponse';
import DiversityTreeCreator from '@genesys/client/model/DiversityTreeCreator'; import DiversityTreeCreator from '@genesys/client/model/DiversityTreeCreator';
import RepositoryFile from '@genesys/client/model/repository/RepositoryFile'; import RepositoryFile from '@genesys/client/model/repository/RepositoryFile';
import { dereferenceReferences2 } from '@genesys/client/utilities';
const URL_CREATE = `/api/v1/div-tree`; const URL_CREATE = `/api/v1/div-tree`;
const URL_UPDATE = `/api/v1/div-tree`; const URL_UPDATE = `/api/v1/div-tree`;
...@@ -109,7 +110,10 @@ class DiversityTreeService { ...@@ -109,7 +110,10 @@ class DiversityTreeService {
url: apiUrl, url: apiUrl,
method: 'GET', method: 'GET',
...content, ...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