MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / selectProfile

Function selectProfile

packages/app/src/web/server-connection-menu.tsx:293–298  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

291 }, [connection, hydrated]);
292
293 const selectProfile = (key: string): void => {
294 const next = selectExecutorServerProfile(snapshot, key);
295 const active = getActiveExecutorServerProfile(next);
296 persistSnapshot(next);
297 if (active) setServerConnection(active);
298 };
299
300 const removeProfile = (key: string): void => {
301 if (snapshot.profiles.length <= 1) return;

Callers 1

ServerConnectionMenuFunction · 0.85

Calls 2

Tested by

no test coverage detected