Skip to content
Snippets Groups Projects
Commit bf51b290 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Alias shouldn't have null values for compartment and complex id

parent 1d074038
No related branches found
No related tags found
1 merge request!23Resolve "clicking on pathway compartment throws error"
......@@ -236,14 +236,18 @@ Alias.prototype.getCompartmentId = function() {
};
Alias.prototype.setCompartmentId = function(compartmentId) {
this._compartmentId = compartmentId;
if (compartmentId !== null) {
this._compartmentId = compartmentId;
}
};
Alias.prototype.getComplexId = function() {
return this._complexId;
};
Alias.prototype.setComplexId = function(complexId) {
this._complexId = complexId;
if (complexId !== null) {
this._complexId = complexId;
}
};
module.exports = Alias;
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