Skip to content
Snippets Groups Projects
Commit 4dc9b261 authored by Xiao Gui's avatar Xiao Gui Committed by xgui3783
Browse files

bugfix: citation component does not throw error if undefined object was passed to it

parent 78959903
No related branches found
No related tags found
No related merge requests found
<div
citationContainer
*ngFor = "let publication of properties.publications">
<a
target = "_blank"
[href] = "publication.doi"
*ngIf="publication.doi && publication.doi !== 'undefined'">
{{ publication.citation }}
</a>
<span
*ngIf="(!publication.doi) || publication.doi === 'undefined'">
{{ publication.citation }}
</span>
<div *ngIf = "properties">
<div
citationContainer
*ngFor = "let publication of properties.publications">
<a
target = "_blank"
[href] = "publication.doi"
*ngIf="publication.doi && publication.doi !== 'undefined'">
{{ publication.citation }}
</a>
<span
*ngIf="(!publication.doi) || publication.doi === 'undefined'">
{{ publication.citation }}
</span>
</div>
</div>
\ No newline at end of file
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