From 60982628ffb1a1f0b6624cecc1bca3b3b7f593f5 Mon Sep 17 00:00:00 2001 From: oldj Date: Sun, 9 May 2021 19:14:01 +0800 Subject: [PATCH] Fix a problem with the selected state of hosts. --- src/renderer/components/List/index.tsx | 1 + src/version.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/List/index.tsx b/src/renderer/components/List/index.tsx index 720c89bf4..c846bb07a 100644 --- a/src/renderer/components/List/index.tsx +++ b/src/renderer/components/List/index.tsx @@ -150,6 +150,7 @@ const List = (props: Props) => { } setCurrentHosts(hosts) + setSelectedIds([id]) }, [hosts_data]) useOnBroadcast(events.reload_list, loadHostsData) diff --git a/src/version.json b/src/version.json index f82067528..32a2461f6 100644 --- a/src/version.json +++ b/src/version.json @@ -1 +1 @@ -[4, 0, 1, 6050] \ No newline at end of file +[4, 0, 1, 6051] \ No newline at end of file