Skip to content
Snippets Groups Projects
Commit d811a6b7 authored by HongKee Moon's avatar HongKee Moon
Browse files

Fixes canonical_id for condensate access

parent b98aa2ee
No related branches found
No related tags found
No related merge requests found
......@@ -44,10 +44,10 @@
<!--<span v-for="(item, index) in getRating(response.data.data_sources)" :class="item" v-bind:key="index"/>-->
<!--</div>-->
<!--</div>-->
<div class="row">
<div class="row" v-show="response.data.synonyms">
<div class="text col-sm-3">Also Known As</div>
<div class="col-sm-9">
{{response.data.synonyms.map(a => a.replace('-', ' ').replace(/\b\w/g, l => l.toUpperCase())).join(', ')}}
{{response.data.synonyms ? response.data.synonyms.map(a => a.replace('-', ' ').replace(/\b\w/g, l => l.toUpperCase())).join(', ') : ''}}
</div>
</div>
</div>
......
......@@ -62,7 +62,7 @@
const vm = this;
_.forEach(data, (d) => {
d.DT_RowID = vm.category === "protein" ? `${d.proteinId}` : `${d.unique_name}`;
d.DT_RowID = vm.category === "protein" ? `${d.proteinId}` : `${d.canonical_id}`;
});
const proteinColumns = [
......
......@@ -162,7 +162,7 @@
const tr = $(e.target).parent().parent();
const row = table.row(tr);
// console.log(row.data())
vm.moveDetailPage(row.data().unique_name);
vm.moveDetailPage(row.data().canonical_id);
});
$('#download').on('click', 'a.dropdown-item', (e) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment