From 3c7112f0c6f8c034537f0812bf464503e1a8a569 Mon Sep 17 00:00:00 2001 From: GaziYucel Date: Thu, 2 May 2024 14:54:42 +0200 Subject: [PATCH] Bugfix check workingPublication.citationsStructured for null --- templates/workflowTab.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/workflowTab.tpl b/templates/workflowTab.tpl index 83ce1533..ab45f8f4 100755 --- a/templates/workflowTab.tpl +++ b/templates/workflowTab.tpl @@ -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);