From 27b1ef8b3ba5c607d934505cb8e016a92fe8c881 Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Fri, 12 Apr 2019 00:00:17 -0300 Subject: [PATCH] Fix JS error on empty citations list. --- js/plugins/reference_footnotes/dialogs/footnotes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/plugins/reference_footnotes/dialogs/footnotes.js b/js/plugins/reference_footnotes/dialogs/footnotes.js index b6c3c0c..bb5b37c 100644 --- a/js/plugins/reference_footnotes/dialogs/footnotes.js +++ b/js/plugins/reference_footnotes/dialogs/footnotes.js @@ -14,7 +14,7 @@ { id: 'reference', type: 'select', - items: [[" - None - ", 0]].concat(drupalSettings.bibcite_footnotes.references), + items: [[" - None - ", 0]].concat(typeof(drupalSettings.bibcite_footnotes) !== 'undefined' ? drupalSettings.bibcite_footnotes.references : []), label: Drupal.t('Reference Footnote item:'), setup: function (element) { if (isEdit)