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

bug fix when annotation contains null article (becuase article id was invalid)

parent 4399e646
No related branches found
No related tags found
1 merge request!70Resolve "Get drugs by target"
......@@ -16,7 +16,7 @@ function Annotation(javaObject) {
} else {
this.setLink(javaObject.link);
this.setId(javaObject.id);
if (javaObject.article !== undefined) {
if (javaObject.article !== undefined && javaObject.article !== null) {
this.setArticle(new Article(javaObject.article));
}
this.setType(javaObject.type);
......
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