Browse Source

Fix the problem of incomplete list in group. #566 #584

oldj 4 years ago
parent
commit
bac4a6afac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderer/components/EditHostsInfo.tsx

+ 1 - 1
src/renderer/components/EditHostsInfo.tsx

@@ -218,7 +218,7 @@ const EditHostsInfo = () => {
     const list = hostsFn.flatten(hosts_data.list)
 
     let source_list: IHostsListObject[] = list
-      .filter(item => item.type === 'local' || item.type === 'remote')
+      .filter(item => !item.type || item.type === 'local' || item.type === 'remote')
       .map(item => {
         let o = { ...item }
         o.key = o.id