We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 085c454 commit a3b3fd8Copy full SHA for a3b3fd8
src/equipments/index.ts
@@ -198,7 +198,7 @@ function parseEquipmentStats(eqstats: Element): {
198
for (let i = 1; i < rows.length; i++) {
199
stats[
200
camelize(
201
- (rows[i].firstElementChild.firstElementChild.getAttribute("title")
+ (rows[i].firstElementChild?.firstElementChild?.getAttribute("title")
202
? rows[i].firstElementChild.firstElementChild.getAttribute("title")
203
: rows[i].firstElementChild.textContent.trim()
204
).replace(/[^\w ]/g, "")
@@ -391,4 +391,4 @@ export function publishEQ() {
391
VERSION_INFO.equipments["version-number"] += 1;
392
VERSION_INFO.equipments["last-data-refresh-date"] = Date.now();
393
fs.writeFileSync(VERSION_PATH, JSON.stringify(VERSION_INFO));
394
-}
+}
0 commit comments