Skip to content
Snippets Groups Projects
Commit 9f94ba31 authored by David Mendez's avatar David Mendez
Browse files

Compound report card: fix bug with initialisation of report card

parent 1b543988
No related branches found
No related tags found
1 merge request!88Changes for the Midterm Review
......@@ -48,6 +48,7 @@ export default {
const showActivityProfileData = await this.hasActivityProfileData(
chemblID
)
console.log('paramsFromCompound: ', paramsFromCompound)
const reportCardStructure = CompoundReportCardGenerator.generateReportCardStructure(
{
itemID: this.itemID,
......@@ -87,12 +88,14 @@ export default {
const entityID = EntityNames.EubopenCompound.entityID
const indexName = IndexNames.getIndexNameFromEntityID(entityID)
const compoundData = await ESProxyService.getESDocument(
const compoundResponse = await ESProxyService.getESDocument(
indexName,
this.itemID,
docSource
)
const compoundData = compoundResponse.data._source
const prefName = ObjectPropertyAccess.getPropertyPalue(
compoundData,
'pref_name',
......
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