swarm ui: the agent detail leaves out the config repo link for an archetype agent
An agent built from an archetype has no config repo on the forge, so the link 404ed. It shows again once the agent is turned into a custom one.
This commit is contained in:
parent
6695355b9d
commit
356390befb
1 changed files with 23 additions and 7 deletions
|
|
@ -39,3 +39,9 @@ test("the agent name is encoded", () => {
|
|||
"https://forge.example/a%20b",
|
||||
);
|
||||
});
|
||||
|
||||
test("an agent without a config repo, one from an archetype, has no config link", () => {
|
||||
const links = agentForgeLinks("https://forge.example", "iris", false);
|
||||
assert.equal(links.configRepo, null);
|
||||
assert.equal(links.profile, "https://forge.example/iris");
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue