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

Function removeProfile

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

Source from the content-addressed store, hash-verified

298 };
299
300 const removeProfile = (key: string): void => {
301 if (snapshot.profiles.length <= 1) return;
302 const next = removeExecutorServerProfile(snapshot, key);
303 const active = getActiveExecutorServerProfile(next);
304 persistSnapshot(next);
305 if (key === connection.key && active) setServerConnection(active);
306 };
307
308 const addProfile = (event: React.FormEvent<HTMLFormElement>): void => {
309 event.preventDefault();

Callers 1

ServerConnectionMenuFunction · 0.85

Calls 2

Tested by

no test coverage detected