From 3626ad25143915226db70ace2243275bfd65b378 Mon Sep 17 00:00:00 2001 From: Christian Holm Date: Thu, 8 Jun 2017 11:04:34 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20set=20address=20if=20hyperlink?= =?UTF-8?q?=20r:id=20is=20undefined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/xlsx/xform/sheet/worksheet-xform.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/xlsx/xform/sheet/worksheet-xform.js b/lib/xlsx/xform/sheet/worksheet-xform.js index dc946fc72..d1c84577d 100644 --- a/lib/xlsx/xform/sheet/worksheet-xform.js +++ b/lib/xlsx/xform/sheet/worksheet-xform.js @@ -262,7 +262,9 @@ utils.inherits(WorkSheetXform, BaseXform, { return h; }, {}); options.hyperlinkMap = (model.hyperlinks || []).reduce(function(h, hyperlink) { - h[hyperlink.address] = rels[hyperlink.rId].Target; + if (hyperlink.rId) { + h[hyperlink.address] = rels[hyperlink.rId].Target; + } return h; }, {}); options.formulae = {};