浏览代码

Fix a problem with the selected state of hosts.

oldj 4 年之前
父节点
当前提交
60982628ff
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      src/renderer/components/List/index.tsx
  2. 1 1
      src/version.json

+ 1 - 0
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)

+ 1 - 1
src/version.json

@@ -1 +1 @@
-[4, 0, 1, 6050]
+[4, 0, 1, 6051]