From 8669e953308f1afbdeec27004718e1c65e8f47e0 Mon Sep 17 00:00:00 2001 From: Laura Beaufort <31420082+lbeaufort@users.noreply.github.com> Date: Tue, 13 Nov 2018 12:11:28 -0500 Subject: [PATCH] Add handling for null amendment_chain --- fec/fec/static/js/modules/helpers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/fec/fec/static/js/modules/helpers.js b/fec/fec/static/js/modules/helpers.js index 35e81e0c24..0938ef3d9d 100644 --- a/fec/fec/static/js/modules/helpers.js +++ b/fec/fec/static/js/modules/helpers.js @@ -392,6 +392,7 @@ function amendmentVersionDescription(row) { // and F1N & F2 that are filed as N but are not originals if ( row.amendment_indicator === API.amendment_indicator_new && + row.amendment_chain != null && row.amendment_chain.length === 1 ) { description = ' Original';