diff --git a/lib/readable-name-functions/get-readable-name-for-pcb-port.ts b/lib/readable-name-functions/get-readable-name-for-pcb-port.ts index f25efaf..4459a78 100644 --- a/lib/readable-name-functions/get-readable-name-for-pcb-port.ts +++ b/lib/readable-name-functions/get-readable-name-for-pcb-port.ts @@ -36,9 +36,9 @@ export const getReadableNameForPcbPort = ( // Determine the pad number or hint let padIdentifier: string if (sourcePort?.port_hints && sourcePort.port_hints.length > 0) { - padIdentifier = sourcePort.port_hints[0] + padIdentifier = sourcePort.port_hints[0]! } else if (sourcePort.port_hints && sourcePort.port_hints.length > 0) { - padIdentifier = sourcePort.port_hints[0] + padIdentifier = sourcePort.port_hints[0]! } else { padIdentifier = pcb_port_id } diff --git a/package-lock.json b/package-lock.json index 5c4658f..6401a71 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@tscircuit/soup-util", - "version": "0.0.12", + "version": "0.0.14", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@tscircuit/soup-util", - "version": "0.0.12", + "version": "0.0.14", "license": "ISC", "dependencies": { "parsel-js": "^1.1.2"