feat(mcp): подготовить сервер и доступ к приёмке
This commit is contained in:
commit
bf3d50e1ff
3835 files changed
+537122
No files matched your search
@@ -0,0 +1,4 @@
|
||||
/** An explicit missing selection must never fall back to another peer. */
|
||||
export function selectWgExportPeer<T extends { id?: string; rosId?: string }>(peers: readonly T[], peerId?: string | null): T | undefined {
|
||||
return peerId == null ? peers[0] : peers.find(peer => peer.id === peerId || peer.rosId === peerId)
|
||||
}
|
||||
Reference in new issue
Block a user