From: Jeff Davis Date: Tue, 10 May 2016 17:06:09 +0000 (-0700) Subject: Avoid potential runtime error on My Account main page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=19d3666fb9fb21b795b75e90e499271520f5bf2c;p=contrib%2Foverdrive-eg-opac.git Avoid potential runtime error on My Account main page Signed-off-by: Jeff Davis --- diff --git a/src/od_pages_myopac.coffee b/src/od_pages_myopac.coffee index 106a578..3d174d8 100644 --- a/src/od_pages_myopac.coffee +++ b/src/od_pages_myopac.coffee @@ -64,7 +64,7 @@ define [ if arguments.length is 0 # Parse a list of totals of physical items from the account summary table - totals = ( +(v.textContent.match(/\d+/)[0]) for v in @find('td').not '[align="right"]' ) + totals = ( +(v.textContent.match(/\d+/)[0] if v.textContent.match(/\d+/)) for v in @find('td').not '[align="right"]' ) tpl = _.template """