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

Close #14

Sorting by Evidence Stars doesn't seem to be working on Proteins Table in Condensate Page
parent 2fce58c6
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@
}
function getRatingValue(data) {
return _.max(_.map(data, i => scoreMap[i]));
return _.max(_.map(data, i => scoreMap[getStartWith(i)]));
}
function getRating(data) {
......@@ -239,13 +239,15 @@
title: 'Evidence Stars',
className: "text-nowrap",
data: 'uniprot_id',
// render: function ( data, type, row, meta ) {
// // console.log(_.flatMap(row.condensates, c => c.data_sources))
// if(row.condensates) {
// return getRatingValue(vm.map[row.uniprot_id]);
// }
// return '';
// },
render: function ( data, type, row, meta ) {
// console.log(_.flatMap(row.condensates, c => c.data_sources))
let dat = vm.map[data];
if(dat) {
console.log(getRatingValue(vm.map[row.uniprot_id]))
return getRatingValue(vm.map[row.uniprot_id]);
}
return '';
},
fnCreatedCell: (nTd, sData, oData) => {
let data = vm.map[oData.uniprot_id];
if(data) {
......
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