mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-02 09:03:56 +08:00
🍉 Sync 2026-10-20 11:10:09
This commit is contained in:
1 parent
cbd3ce4959
commit
0e175ff6b9
8 files changed
+2576
-234
No files matched your search
@@ -214,8 +214,9 @@ function addResolvedPort(knownPorts, seenPorts, role, device, mapping, board, sw
|
||||
});
|
||||
}
|
||||
else {
|
||||
const deviceInfo = L.isObject(board) && L.isObject(board['network-device'])
|
||||
? board['network-device'][value] : null;
|
||||
const devices = L.isObject(board)
|
||||
? (board['network-device'] || board.network_device) : null;
|
||||
const deviceInfo = L.isObject(devices) ? devices[value] : null;
|
||||
|
||||
addKnownPort(knownPorts, seenPorts, role, value,
|
||||
L.isObject(deviceInfo) && isString(deviceInfo.label) ? { label: deviceInfo.label } : null);
|
||||
|
||||
Reference in new issue
Block a user