Skip to content

Commit 51acf64

Browse files
authored
fix for incorrect argument being passed (#498)
* fix for incorrect argument being passed * add declare units property
1 parent 8d7f5bb commit 51acf64

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

InteractiveHtmlBom/web/util.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ var units = {
183183
return 1;
184184
},
185185
valueRegex: null,
186+
valueAltRegex: null,
186187
}
187188

188189
function initUtils() {
@@ -209,7 +210,7 @@ function initUtils() {
209210
var allList = getBomListByLayer('FB').flat();
210211
for (var id in pcbdata.bom.fields) {
211212
var ref_key = allList.find(item => item[1] == Number(id)) || [];
212-
pcbdata.bom.parsedValues[id] = parseValue(pcbdata.bom.fields[id][index], ref_key);
213+
pcbdata.bom.parsedValues[id] = parseValue(pcbdata.bom.fields[id][index], ref_key[0] || '');
213214
}
214215
}
215216
}

0 commit comments

Comments
 (0)