swarm UI: key LinkedAccounts by hive and agent
Selecting another agent kept the previous agent's rows on screen until the new fetch landed. Keying both mounts by hive/agent remounts the component on an agent change; a version bump still refetches in place. Refs #4855
This commit is contained in:
parent
3380c1915f
commit
4fd1380a5f
2 changed files with 5 additions and 0 deletions
|
|
@ -394,6 +394,7 @@ export function AgentsPage() {
|
|||
<>
|
||||
{a.hive ? (
|
||||
<LinkedAccounts
|
||||
key={`${a.hive}/${a.name}`}
|
||||
hive={a.hive}
|
||||
agent={a.name}
|
||||
version={linkVersion}
|
||||
|
|
@ -600,6 +601,7 @@ export function AgentsPage() {
|
|||
<dd>
|
||||
{detailTarget.hive ? (
|
||||
<LinkedAccounts
|
||||
key={`${detailTarget.hive}/${detailTarget.name}`}
|
||||
hive={detailTarget.hive}
|
||||
agent={detailTarget.name}
|
||||
version={linkVersion}
|
||||
|
|
|
|||
Loading…
Reference in a new issue