Skip to content

Commit

Permalink
Merge pull request #187 from GaziYucel/dev-3_4_0
Browse files Browse the repository at this point in the history
Bugfix check workingPublication.citationsStructured for null
  • Loading branch information
GaziYucel authored May 2, 2024
2 parents 67362d8 + 3c7112f commit 5b9fb86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/workflowTab.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@
},
setCitations: function(publication) {
this.citations = [];
if (publication["{CitationManagerPlugin::CITATIONS_STRUCTURED}"] !== undefined) {
if (publication["{CitationManagerPlugin::CITATIONS_STRUCTURED}"] !== undefined
&& publication["{CitationManagerPlugin::CITATIONS_STRUCTURED}"] !== null) {
let citations = publication["{CitationManagerPlugin::CITATIONS_STRUCTURED}"];
if (typeof citations === 'string') {
citations = JSON.parse(citations);
Expand Down

0 comments on commit 5b9fb86

Please sign in to comment.