From 5df274c9526b820ab964f4354ab49968f9132d5d Mon Sep 17 00:00:00 2001 From: Jannis R Date: Fri, 12 Aug 2016 15:26:44 +0200 Subject: [PATCH] fix product parsing :bug: --- parse.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parse.js b/parse.js index c907da3e..11c254a2 100644 --- a/parse.js +++ b/parse.js @@ -38,7 +38,8 @@ const location = (l) => { // todo: what is p.cls? // todo: what is p.oprX? const product = (p) => { - if (!p.prodCtx) return null + if (p.prodCtx) p = p.prodCtx + if (!p) return null return { name: p.name, nr: +p.number, class: p.cls, productCode: +p.prodCtx.catCode, productName: p.prodCtx.catOutS