(key: string)
| 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(); |
no test coverage detected