Commit 7b18c3de authored by maxchaza's avatar maxchaza
Browse files

Merge branch 'hotfix/fixfordoc'

parents c5a62971 9b13aefb
...@@ -34,3 +34,4 @@ node_modules/ ...@@ -34,3 +34,4 @@ node_modules/
package-lock\.json package-lock\.json
sencha-error-* sencha-error-*
docs/
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
/** /**
* The version of the application. * The version of the application.
*/ */
"version": "3.0.13", "version": "3.0.14",
/** /**
* The relative path to the application's markup file (html, jsp, asp, etc.). * The relative path to the application's markup file (html, jsp, asp, etc.).
......
...@@ -20,7 +20,7 @@ Ext.define('metExploreViz.view.form.label.LabelController', { ...@@ -20,7 +20,7 @@ Ext.define('metExploreViz.view.form.label.LabelController', {
var session = _metExploreViz.getSessionById('viz'); var session = _metExploreViz.getSessionById('viz');
var metabKeys; var metabKeys;
metabKeys = Object.keys(session.getD3Data().getNodes().filter(n => n.getBiologicalType() === view.aStyleFormParent.biologicalType)[0]); metabKeys = Object.keys(session.getD3Data().getNodes().filter(function(n) {return n.getBiologicalType() === view.aStyleFormParent.biologicalType[0];}));
metabKeys = metabKeys.filter(function(key){ metabKeys = metabKeys.filter(function(key){
return key!=="isSideCompound" && key!=="reactionReversibility" && key!=="reactionReversibility" && key!=="selected" && key!=="duplicated" && key!=="labelVisible" && return key!=="isSideCompound" && key!=="reactionReversibility" && key!=="reactionReversibility" && key!=="selected" && key!=="duplicated" && key!=="labelVisible" &&
......
...@@ -40,9 +40,11 @@ Ext.define('metExploreViz.view.form.selectMappingForExtraction.SelectMappingForE ...@@ -40,9 +40,11 @@ Ext.define('metExploreViz.view.form.selectMappingForExtraction.SelectMappingForE
.filter(function(node){ return node.mappingDatas.length!==0;}) .filter(function(node){ return node.mappingDatas.length!==0;})
.filter(function (node) { .filter(function (node) {
return node.getMappingDatas() return node.getMappingDatas()
.filter(map => selectedMappings.includes(map.getMappingName())).length !==0; .filter(function(map) { return selectedMappings.includes(map.getMappingName()); }).length !==0;
}) })
.map(node => node.getId()); .map(function (node) {
return node.getId();
});
metExploreD3.GraphFunction.keepOnlySubnetwork(nodesToLinks); metExploreD3.GraphFunction.keepOnlySubnetwork(nodesToLinks);
} }
......
Markdown is supported
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