Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
plugins
drug-reactions
Commits
1d2cd015
Commit
1d2cd015
authored
Mar 26, 2019
by
David Hoksza
Browse files
Fix a bug when no reactions identified for given map
parent
65ffc754
Pipeline
#9477
passed with stages
in 1 minute and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/js/index.js
View file @
1d2cd015
...
...
@@ -400,7 +400,6 @@ function initDrugBioEntities(){
});
globals
.
adrDataMap
=
globals
.
adrData
.
filter
(
d
=>
d
[
settings
.
drugColumnName
]
in
globals
.
drugs2BioEntities
);
console
.
log
(
'
globals
'
,
globals
);
}).
then
(
function
()
{
return
getBioEntities
();
}).
then
(
function
()
{
...
...
@@ -417,11 +416,16 @@ function initDrugBioEntities(){
function
highlightSelectedInTable
(){
// $container.find(`td`).parent().removeClass('danger');
$adrTable
.
find
(
'
tbody tr
'
).
each
(
function
()
{
let
rowId
=
$
(
this
).
data
(
'
index
'
);
$adrTable
.
bootstrapTable
(
'
updateCell
'
,
{
index
:
rowId
,
field
:
'
State
'
,
value
:
1
,
reinit
:
false
});
});
$adrTable
.
bootstrapTable
(
'
updateCell
'
,
{
index
:
0
,
field
:
'
State
'
,
value
:
1
});
//to trigger reinitialization
if
(
Object
.
keys
(
globals
.
adrDataMap
).
length
>
0
)
{
$adrTable
.
find
(
'
tbody tr
'
).
each
(
function
()
{
let
rowId
=
$
(
this
).
data
(
'
index
'
);
$adrTable
.
bootstrapTable
(
'
updateCell
'
,
{
index
:
rowId
,
field
:
'
State
'
,
value
:
1
,
reinit
:
false
});
});
$adrTable
.
bootstrapTable
(
'
updateCell
'
,
{
index
:
0
,
field
:
'
State
'
,
value
:
1
});
//to trigger reinitialization
}
if
(
selectedInMap
){
let
idModelId
=
idIdModelId
(
selectedInMap
.
getId
(),
selectedInMap
.
getModelId
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment