MCPcopy Create free account
hub / github.com/EsperoTech/yaade / getEnv

Function getEnv

client/src/components/websocketPanel/WebsocketHandler.tsx:145–155  ·  view source on GitHub ↗
(collectionId: number, envName?: string)

Source from the content-addressed store, hash-verified

143 }
144
145 function getEnv(collectionId: number, envName?: string) {
146 if (!envName) return;
147
148 const c = findCollection(collections, collectionId);
149 if (!c) return;
150
151 const envs = c.data?.envs;
152 if (!envs) return;
153
154 return envs[envName];
155 }
156
157 async function handleConnect() {
158 try {

Callers

nothing calls this directly

Calls 1

findCollectionFunction · 0.90

Tested by

no test coverage detected