mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 11:42:21 +08:00
fix: show global when no rule groups
This commit is contained in:
parent
781c67b31a
commit
c9359978f9
|
@ -44,7 +44,9 @@ export const useRenderList = (mode: string) => {
|
|||
// global 和 direct 使用展开的样式
|
||||
const useRule = mode === "rule" || mode === "script";
|
||||
const renderGroups =
|
||||
(useRule ? proxiesData?.groups : [proxiesData?.global!]) || [];
|
||||
(useRule && proxiesData.groups.length
|
||||
? proxiesData.groups
|
||||
: [proxiesData.global!]) || [];
|
||||
|
||||
const retList = renderGroups.flatMap((group) => {
|
||||
const headState = headStates[group.name] || DEFAULT_STATE;
|
||||
|
|
Loading…
Reference in New Issue
Block a user