Browse Source

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

oldj 4 năm trước cách đây
mục cha
commit
bac4a6afac
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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