Watch
0
0
Fork
You've already forked hyperhive
0

create form: reset caps and inference with the archetype after a create

A successful create left cpu, memory and inference at the picked
archetype's values under a select reading none. The reset now goes
through pickArchetype(""), the path picking none takes.

Refs #5386
This commit is contained in:
atlas 2026-10-17 00:41:01 +02:00 • committed by mara
commit a2b4320cc4

View file

@ -239,7 +239,7 @@ export function CreateAgentForm({
const data = (await r.json()) as CreateAgentResponse; const data = (await r.json()) as CreateAgentResponse;
setResult({ status: "done", nodeId: data.node_id }); setResult({ status: "done", nodeId: data.node_id });
setName(""); setName("");
setArchetype(""); pickArchetype("");
if (catalogue) if (catalogue)
setSelected( setSelected(
initialSelection(catalogue.all, catalogue.default, extraPermissions), initialSelection(catalogue.all, catalogue.default, extraPermissions),