fix eslint error
parent
5e459cb2f9
commit
260687dfaf
|
@ -304,10 +304,10 @@ ${d.pickupPointPostCode} ${d.pickupPointCity}`,
|
|||
["Open code", "openCode"],
|
||||
["Package number", "id"],
|
||||
] as [string, string | ((d: typeof data) => string)][]).forEach(([key, value]) => {
|
||||
const row = infoTable.insertRow();
|
||||
const keyCell = row.insertCell();
|
||||
const infoRow = infoTable.insertRow();
|
||||
const keyCell = infoRow.insertCell();
|
||||
keyCell.innerText = key;
|
||||
const valueCell = row.insertCell();
|
||||
const valueCell = infoRow.insertCell();
|
||||
if (typeof value === "string") {
|
||||
valueCell.innerText = `${data[value]}`;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue