Skip to content
Open
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
9 changes: 9 additions & 0 deletions src/services/flatmapQueries.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ let FlatmapQueries = function () {
this.singleConnectivityList = [];
this.hasSingleConnectivityList = false;
this.rawURLs = [];
this.expertConsultants = [];
this.controller = undefined;
this.uberons = [];
this.lookUp = [];
Expand Down Expand Up @@ -167,6 +168,7 @@ let FlatmapQueries = function () {
title: eventData.label,
featureId: eventData.resource,
hyperlinks: hyperlinks,
'expert-consultants': this.expertConsultants,
provenanceTaxonomy: eventData.provenanceTaxonomy,
provenanceTaxonomyLabel: taxonomyLabel,
connectivitySource: this.connectivitySource,
Expand Down Expand Up @@ -317,6 +319,7 @@ let FlatmapQueries = function () {
this.componentsCombinations = [];
this.singleConnectivityList = [];
this.rawURLs = [];
this.expertConsultants = [];
if (!keastIds || keastIds.length === 0 || !keastIds[0]) return;

let prom1 = await this.queryForConnectivityNew(mapImp, keastIds[0]); // This on returns a promise so dont need 'await'
Expand Down Expand Up @@ -362,6 +365,9 @@ let FlatmapQueries = function () {
// with publications from both PubMed and Others
this.rawURLs = [...response.references];
}
if (response['expert-consultants']) {
this.expertConsultants = [...response['expert-consultants']];
}
resolve(processedConnectivity);
});
} else resolve(connectivity);
Expand All @@ -383,6 +389,9 @@ let FlatmapQueries = function () {
// with publications from both PubMed and Others
this.rawURLs = [...fallbackResponse.references];
}
if (fallbackResponse['expert-consultants']) {
this.expertConsultants = [...fallbackResponse['expert-consultants']];
}
resolve(processedConnectivity);
});
} else resolve(connectivity);
Expand Down
Loading